toggleswitch::toggleswitch - Create and manipulate toggleswitch widgetstoggleswitch::toggleswitch pathName ?options?-borderwidth-cursor-font-relief-state-takefocus-variable-command name-offbackground color-offforeground color-offvalue variable-onbackground color-onforeground color-onvalue variablepathName cget
optionpathName configure
?option? ?value option value ...?pathName invokepathName switchoffpathName switchonpathName toggletoggleswitch::toggleswitch - Create and manipulate toggleswitch widgetstoggleswitch::toggleswitch pathName ?options?
-borderwidth-cursor-font-relief-state-takefocus-variable| Command-Line Name: | -command |
| Database Name: | command |
| Database Class: | Command |
A Tcl script to execute whenever the widget is invoked. The widget's global variable (-variable option) will be updated before the command is invoked.
| Command-Line Name: | -offbackground |
| Database Name: | offBackground |
| Database Class: | Background |
Specifies the background color to use for the off side of the widget.
| Command-Line Name: | -offforeground |
| Database Name: | offForeground |
| Database Class: | Foreground |
Specifies the foreground color to use for the off side of the widget.
| Command-Line Name: | -offvalue |
| Database Name: | offValue |
| Database Class: | Value |
Specifies value to store in the widget's associated variable whenever this widget is set to the off position. Defaults to "0".
| Command-Line Name: | -onbackground |
| Database Name: | onBackground |
| Database Class: | Background |
Specifies the background color to use for the on side of the widget.
| Command-Line Name: | -onforeground |
| Database Name: | onForeground |
| Database Class: | Foreground |
Specifies the foreground color to use for the on side of the widget.
| Command-Line Name: | -onvalue |
| Database Name: | onValue |
| Database Class: | Value |
Specifies value to store in the widget's associated variable whenever this widget is set to the on position. Defaults to "1".
toggleswitch::toggleswitch command creates a new window named
pathName and of the class ToggleSwitch, and makes it
into a toggleswitch widget. Additional options, described above, may be
specified on the command-line or in the option database to configure aspects of the
toggleswitch. The toggleswitch::toggleswitch command
returns its pathName argument. At the time this command
is invoked, there must not exist a window named pathName, but
pathName's parent must exist.
toggleswitch::toggleswitch command creates a new Tcl command whose
name is pathName. This command may be used to invoke various
operations on the widget. It has the following general form:
pathName option ?arg arg ...?
option and the arg determine the exact behavior
of the command. The following commands are possible for tokenentry widgets:
pathName cget optionpathName configure ?option? ?value option value ...?pathName invokepathName switchoffpathName switchonpathName toggle