Re: Button Press / Release Events on a HScale



I guess that makes me dumb then !

Thanks.

On Tue, 2010-01-12 at 01:57 +0800, smso graduate hku hk wrote:
> Dear Lyle Underwood,
>     Please pass "false" as a second argument to the connect() function:
> 
> hscale->signal_button_press_event().connect
> (
> 	sigc::mem_fun(*this, &MyClass::on_hscale_button_press_event), false
> );
> 
> MyClass::on_hscale_button_press_event()
> {
>     printf("on_hscale_button_press_event()...\n");
>     return true; // allow the event to propagate
> }
> 
> docs links:
> http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-xeventsignals.html.en
> (Thanks to Murray Cumming)
> 
> Regards from smso
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]