Re: Gtk::Widget
- From: rob page <page rob gmail com>
- To: rope-walker yandex ru
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Widget
- Date: Mon, 12 Dec 2005 14:28:22 +0000
>From the docs:
"Glib::SignalProxy1< bool, GdkEventKey* > signal_key_press_event ()"
Now from my understanding,
The first template type, for the signal is its return value, and all
the following are the arguments the signal passes...
So in this case, you need something like
bool on_key_press_event(GdkEventKey* keyevt){
// do the stuff
}
More info on connecting to signals can be found here:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apb.html
And the GdkEventKey struct docs are here:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey
Rob.
On 12/12/05, Volosatov Alexander <rope-walker yandex ru> wrote:
> Hi!
>
> How to change pressing <Enter> to pressing <Tab> for widget.
> There is signal_key_press_event() method, but can't understand how it
> work.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]