DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

VtToggleButton(VTCL)


VtToggleButton -- create toggle button, return widget name

Syntax

VtToggleButton widgetName [options]

Description

Creates a ToggleButton. The button may be labelled using the standard Label class options. Returns the widget name.

Options


-noCallback (CS)
Suppresses the -callback when -value is set.

-textVariable string (CS)
Updates the interpreter variable string with the widget value. The update happens under the same conditions that would invoke -callback, but before -callback is called. Setting a value into the interpreter variable updates the ToggleButton as if setting -value on the widget.

-value boolean (CSG)
Sets whether the state of the toggle is on or off. To use this option, also set -noCallback.

Errors


NO_VALUE_SET
specified -noCallback without setting -value

Standard errors
See ``Tcl widget creation errors'' in SCO Visual Tcl Programmer's Guide and Reference.

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003