"Fossies" - the Fresh Open Source Software archive

Member "Tix8.4.3/docs/html/TixBook/subsubsection3_3_5_1.html" of archive Tix8.4.3-src.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.



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