TIX(3) | Tix Built-In Commands | TIX(3) |
tixControl - Create and manipulate tixControl widgets
tixControl pathName ?options?
The TixControl class is derived from the TixLabelWidget class and inherits all the commands, options and subwidgets of its super-class.
The Control widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.
[-allowempty allowEmpty] Specifies whether the Control widget should allow the empty string as a valid input. [-autorepeat autorepeat] Specifies whether the Control widget should have autorepeat behavior. If set to be "true", the value of the Control widget will be automatically incremented or decremented when the user holds down the mouse button over the arrow buttons. Only values "true" and "false" will be recognized. [-command command] Specifies the command to be called when the -value option of the Control widget is changed. The command will be called with one arguments -- the new value of the Control widget. [-decrcmd decrCmd] Specifies a TCL command to be called when the the user presses the down-arrow button subwidget. This command is called with one parameter -- the current -value of this Control widget. This command is to decrement this value by one step, according to its own definition of "decrement", and return the decremented value, which will be stored in the -value of this Control widget. [-disablecallback disableCallback] A boolean value indicating whether callbacks should be disabled. When set to true, the TCL command specified by the -command option is not executed when the -value of the Control widget changes. [-disableforeground disableForeground] The foreground color to use for of the entry subwidget when the Control widget is disabled. [-incrcmd incrCmd] Specifies a TCL command to be called when the the user presses the up-arrow button subwidget. This command is called with one parameter -- the current -value of this Control widget. This command is to increment this value by one step, according to its own definition of "increment", and return the incremented value, which will be stored in the -value of this Control widget. [-initwait initwait] Specifies how long the Control widget should wait initially before it starts to automatically increment or decrement its value in the autorepeat mode. In milliseconds. [-integer integer] A Boolean value specifying whether only integer numbers are accepted. [-label label] Specifies the string to display as the label of this Control widget. [-labelside labelSide] Specifies where the label should be displayed relative to the entry subwidget. Valid options are: top, left, right, bottom, none or acrosstop.
Name: max Class: Max Switch: -max Alias: -ulimit
Name: min Class: Min Switch: -min Alias: -llimit
Name: decr Class: Button
Name: entry Class: Entry
Name: incr Class: Button
Name: label Class: Label
The tixControl command creates a new window (given by the pathName argument) and makes it into a Control widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the Control widget such as its cursor and relief.
The Control widget is also known as the SpinBox widget. It is generally used to control a value. The user can adjust the value by pressing the two arrow buttons or by entering the value directly into the entry. The new value will be checked against the user-defined upper and lower limits.
The tixControl command creates a new Tcl command whose name is the same as the path name of the Control widget's window. This command may be used to invoke various operations on the widget. It has the following general form:
When options are given, the widget command of the specified subwidget will be called with these options.
When the user presses the up/down arrow buttons (or press the <Up> and <Down> arrow keys on the keyboard), the value of the tixControl widget is adjusted according to the -validatecmd, -incrcmd, -decrcmd, -step, -max and -min options.
Tix(n)
4.0 | Tix |