Next: Label and Orientation Up: The TixSelect Widget Previous: The TixSelect Widget


Creating A TixSelect Widget 

Program 1-11 shows how to create a TixSelect widget. At line 1 of program 1-11, we create a TixSelect using the the tixSelect command.

tixSelect .fruits -label "Fruits: " -orientation horizontal
.fruits add apple -text Apple -width 6
.fruits add orange -text Orange -width 6
.fruits add banana -text Banana -width 6
pack .fruits

(Figure 1-11) Creating a TixSelect Widget