Re:



2010/12/4 Culpian Camilo Martin <camiloculpian gmail com>:
> yes, i've called it like this:
> my_dialog->add_events(Gdk::KEY_PRESS_MASK);

Please use reply to all or something in your mail client, so it will
preserve the topic.

Also, you are connecting to this event that way:
my_dialog->signal_key_press_event().connect(sigc::mem_fun(*this,
&class_my_dialog::on_key_press_event));

try it that way (it was mentioned in the docs):

my_dialog->signal_key_press_event().connect(sigc::mem_fun(*this,
&class_my_dialog::on_key_press_event), false);

Note the additional 'false' at the end.


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