tixControl - Create and manipulate tixControl widgets


SYNOPSIS

tixControl pathName ?options?

SUPER-CLASS

The TixControl
class is derived from the TixLabelWidget
class and inherits all the commands, options and subwidgets of its super-class.

STANDARD OPTIONS

The Control widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options.

WIDGET-SPECIFIC OPTIONS


Name:		allowEmpty
Class:		AllowEmpty
Switch:		-allowempty


Name:		autorepeat
Class:		AutoRepeat
Switch:		-autorepeat


Name:		command
Class:		Command
Switch:		-command


Name:		decrCmd
Class:		DecrCmd
Switch:		-decrcmd


Name:		disableCallback
Class:		DisableCallback
Switch:		-disablecallback


Name:		disableForeground
Class:		DisableForeground
Switch:		-disableforeground


Name:		incrCmd
Class:		IncrCmd
Switch:		-incrcmd


Name:		initwait
Class:		Initwait
Switch:		-initwait


Name:		integer
Class:		Integer
Switch:		-integer


Name:		label
Class:		Label
Switch:		-label


Name:		labelSide
Class:		LabelSide
Switch:		-labelside


Name:		max
Class:		Max
Switch:		-max
Alias:		-ulimit


Name:		min
Class:		Min
Switch:		-min
Alias:		-llimit


Name:		repeatRate
Class:		RepeatRate
Switch:		-repeatrate


Name:		selectMode
Class:		SelectMode
Switch:		-selectmode


Name:		state
Class:		State
Switch:		-state


Name:		step
Class:		Step
Switch:		-step


Name:		validateCmd
Class:		ValidateCmd
Switch:		-validatecmd


Name:		value
Class:		Value
Switch:		-value


Name:		variable
Class:		Variable
Switch:		-variable

SUBWIDGETS


Name:		decr
Class:		Button


Name:		entry
Class:		Entry


Name:		incr
Class:		Button


Name:		label
Class:		Label

DESCRIPTION

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.

WIDGET COMMANDS

The tixControl command creates a new Tcl command whose name is command may be used to invoke various operations on the widget. It has the following general form:

pathName option ?arg arg ...?

PathName is the name of the command, which is the same as the determine the exact behavior of the command. The following commands are possible for Control widgets:
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixControl command.
pathName configure ?option? ?value option value ...?
Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the tixControl command.
pathName decr
Decrements the value of the Control widget by the step specified by the -step option.
pathName incr
Increments the value of the Control widget by the step specified by the -step option.
pathName invoke
Causes the command specified by the -command option to be invoked.
pathName update
If the user has modified the entry using keyboard inputs, the update command will update the -value of this Control "normal", one should call the update command on this widget before examining its -value option. This command has no effect in if the -selectmode option is set to "immediate".
pathName subwidget name ?args?
When no options are given, this command returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options.

BINDINGS

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.

KEYWORDS

Tix(n)
Last modified Sun Jan 19 22:34:20 EST 1997 --- Serial 853731296