[KLUG Members] Field focus order for gtk2 applications

Adam Tauno WIlliams adam at morrison-ind.com
Tue Sep 21 09:11:06 EDT 2004


On Mon, 2004-09-20 at 14:37, komal wrote:
> I want to set the focus order for data entry fields in a form, for
> keyboard navigation. Google search terms would be cool as well.
> The only reasonable results I have found are from 2001 which speaks
> about setting a focus follow order for gtk2, but nothing beyond that.
> I would rather not redo my forms, but I can if I have to.

>From Mr. Havoc:
'It's based on widget positions within each container. The widgets are
sorted first vertically then horizontally. So the tab focus goes
top row of widgets, next row of widgets, next row of widgets, etc.
This is within a container though, not "global" for a window. So by
playing with extra containers you should be able to affect the focus
to some extent, I think so anyway.'

One thing that is handy is to bind accelerators to fields that users
frequently want to jump to;  fast typist adopt this very quickly.



More information about the Members mailing list