Re: Entrys focus



Martyn Russell wrote:

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.

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


Thanks!

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

	

	
		
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar



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