Re: Gtk::Widget



>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]