Re: Button Press / Release Events on a HScale



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]