Re: Changing the tab order in a dialog



Suresh Stephen wrote:

         I have created a GUI using GTK and i have created a dialog
         box which will contain multiple entries. In the following
         fashion
 
 entry 1                                                entry 5
 entry 2                                                entry 6
 entry 3                                                entry 7
 entry 4                                                ebtry 8
 
 1,2,3.... indicate the order in which i have added the text entries
 into the widget When i press tab to navigate across the text entries
 the control moves from entry 1 to entry 5 then to entry 2 and then to
 entry 6 and so on. I want the tab order to move from entry 1 to entry
 2  and then to entry 3 and so on. Any one knows how to do it ,any
 help would be great.

You are apparently using a GtkTable with 2 columns and 4 rows. Usually
that's fine and the best way to do it. However, to tune the [TAB] jump
order in your desired way you should rather use a GtkHBox of size 2
(optionally a GtkHPaned) and two GtkVBoxes of size 4 each. Put the
GtkEntries into the GtkVBox cells and there you are. This sort of
forcing different [TAB] orders works just a bit like using parentheses
in mathematics.



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