Re: How To Set Tab Order

From: Date: Tue, 07 Sep 2004 14:11:58 +0000
Subject: Re: How To Set Tab Order
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5056@lists.php.net to get a copy of this message
Hi
But how do I customize which widget would next receive focus, say from hitting the tab button?
I've searched the web and found the following: - There is no "real" way to do it; the explanation:
It's done geometrically, i.e. the order is left-to-right top-to-bottom. In GTK 2.0 this is still the default, but you can explicitly override the focus chain with gtk_container_set_focus_chain().
- You can connect some signals:
On the other hand, you can add signal handlers for "focus_in_event" and "focus_out_event", which in conjunction with gtk_widget_grab_focus() can be used to manually process the focus traversal in the order you want.
Regards/MfG, Christian Weiske -- XMMS is playing now: Xavier Naidoo - 20.000 Meilen

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5056) next »