www.delorie.com/gnu/docs/gcl/gcl-tk_90.html   search  
 
Buy GNU books!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Arguments for Checkbutton

:command
Name="command" Class="Command"

Specifies a Tcl command to associate with the button. This command is typically invoked when mouse button 1 is released over the button window. The button's global variable (:variable option) will be updated before the command is invoked.

:height
Name="height" Class="Height"

Specifies a desired height for the button. If a bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to Tk_GetPixels); for text it is in lines of text. If this option isn't specified, the button's desired height is computed from the size of the bitmap or text being displayed in it.

:offvalue
Name="offValue" Class="Value"

Specifies value to store in the button's associated variable whenever this button is deselected. Defaults to "0".

:onvalue
Name="onValue" Class="Value"

Specifies value to store in the button's associated variable whenever this button is selected. Defaults to "1".

:selector
Name="selector" Class="Foreground"

Specifies the color to draw in the selector when this button is selected. If specified as an empty string then no selector is drawn for the button.

:state
Name="state" Class="State"

Specifies one of three states for the check button: normal, active, or disabled. In normal state the check button is displayed using the foreground and background options. The active state is typically used when the pointer is over the check button. In active state the check button is displayed using the activeForeground and activeBackground options. Disabled state means that the check button is insensitive: it doesn't activate and doesn't respond to mouse button presses. In this state the disabledForeground and background options determine how the check button is displayed.

:variable
Name="variable" Class="Variable"

Specifies name of global variable to set to indicate whether or not this button is selected. Defaults to the name of the button within its parent (i.e. the last element of the button window's path name).

:width
Name="width" Class="Width"

Specifies a desired width for the button. If a bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to Tk_GetPixels); for text it is in characters. If this option isn't specified, the button's desired width is computed from the size of the bitmap or text being displayed in it.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003