Hi,

Is there a way of defining a "focus chain" (elements and order of a cycling focus)? I typically would like the focus to be set on a login textbox, then on a password textbox, then on a "Go!" button. Currently that chain happens to follow the order that I wanted (it must correspond to the creation order of the focus-enabled widgets?), but otherwise I was wondering how I could have set the focus chaining.

Moreover AG_TEXTBOX_ABANDON_FOCUS is a nice feature, as indeed hitting Enter removes the focus of the textbox (ex: from the login one), but apparently the focus is not then given to the next element which would have been selected if tab was hit multiple times instead (ex: to the password textbox). This prevents having a mouse-less interface, the user having to click on the password textbox to give it the focus (or to use the tab key). How could the focus be automatically given to the next element in the focus chain once Enter is hit?

(if it matters, using AG_InitGraphics with the OpenGL driver with Ubuntu 10.10 and latest Agar from SVN)

Thanks in advance for any hint,
Best regards,

Olivier Boudeville.

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to