Re: Entrys focus
- From: Tim Janik <timj imendio com>
- To: Juan Pablo <jpdborgna yahoo com ar>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: Entrys focus
- Date: Wed, 4 Jan 2006 16:16:41 +0100 (CET)
On Wed, 4 Jan 2006, Juan Pablo wrote:
Martyn Russell wrote:
Thank you for this, it help me with my ooother problem :) but it is not what
i asked about :-p.
I have a window with a lot of entrys and the user needs to complete them
quick and easy.
So, when he press enter i need the next entry get the focus. Just like
pressing tab but with enter.
May I do this by checking the enter key press and emiting a tab? That could
be a lot of code for a dialog with 30 entrys if I have to do it one by one,
but if it works and there is no other way...
On Sat, 2005-12-31 at 10:28 -0300, Juan Pablo wrote:
Hellow list! Im new here and obviusly because I have some questions ;-)
I made a window with several GtkEntry on it and would like that when the
user press ENTER the next entry get focused, the same behaviour as
pressing the TAB key but with ENTER.
Whats the correct way of doing this?
Have a look at gtk_container_set_focus_chain (). If for example, you
have a GtkHBox with 3 GtkEntry widgets in it, the GtkHBox is the
container you would use to get or set the focus chain.
you probably want to connect to the entrie's button-press event and
call gtk_window_move_focus() from there.
this list is about developing glib, gtk+ or language bindings however, not
about developing applications with them.
Saludos, Juan Pablo.
PS: Is this list for this kind of questions or there is another like
gtk-users? The other topics are not like this...
Please direct general questions about GLib and Gtk+ to gtk-list gnome org
Subscription information for this list can be obtained from:
Archives, possibly already adressing your area of concern, are available at:
For writing applications with GLib and Gtk+, use gtk-app-devel-list gnome org
This list is also suitable for problems related to the Windows port of Gtk+.
If you're new to GLib/Gtk+ programming, there's also a tutorial for Gtk+-2:
and for Gtk+-1.2:
and the API Reference Documentation:
For general C, C++ or Unix questions, look into the respective standards, i.e
the recent C standard:
ANSI C and ISO C:
The Standard Template Library Programmer's Guide:
64-bit and Data Size Neutrality:
IEEE floating-point standard:
And The Single UNIX Specification, Version 2:
gtk-devel-list mailing list
gtk-devel-list gnome org
] [Thread Prev