Next: Creating the Button Up: The TixSelect Widget Previous: Creating A TixSelect


Label and Orientation 

As shown in program 1-11, with the -label option, we can put a label next to the button subwidgets as the caption of the TixSelect widget. We can also control the layout of the button subwidgets using the -orientation option. The -orientation option can have two values: horizontal (the default value) or vertical, and the buttons are lied up accordingly. Figure 1-12 shows the output of a TixSelect widget whose -orientation is set to vertical.