![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::checkbox - Create and manipulate a checkbox widget
iwidgets::checkbox pathName ?options?
itk::Widget <- iwidgets::Labeledframe <- iwidgets::Checkbox
background borderWidth cursor disabledForeground foreground relief selectColor
options.
labelBitmap labelFont labelImage labelMargin
inherited options.
change in the current check box selection.
box. Valid values are either «horizontal» or «vertical". _________________________________________________________________
capable of adding, inserting, deleting, selecting, and configur- ing checkbuttons as well as obtaining the currently selected but- ton.
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 ...?
an indicator of which checkbutton of the checkbox to operate on.
manipulation of checkbuttons. Checkbox indexes may be specified
in any of the following forms:
pathName add tag ?option value option value?
checkbutton as construction arguments. These include the stan- dard Tk checkbutton options. The tag is returned.
pathName buttonconfigure index
?options?
applies to the options for an individual checkbutton, whereas configureapplies to the options for the checkbox as a whole.
command. If options are specified, options are modified
as indi- cated in the command and the command returns an empty
string. If no options are specified, returns a list
describing the current options for entry index (see
Tk_ConfigureInfo for information on the format of this
list).
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::checkbox command.
pathName configure ?option? ?value
option value ...?
option is specified, returns a list describing all of the
avail- able 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 iwidgets::checkbox command.
pathName delete index
pathName deselect index
pathName flash index
pathName get ?index?
selection status of specific checkbutton when given an index.
pathName index index
pathName insert index tag ?option value option value ...?
ton just before the one given by index, instead of
appending to the end of the checkbox. The option, and
value arguments have the same interpretation as for the
add widget command. pathName select
index
package require Iwidgets 4.0
iwidgets::checkbox .cb -labeltext Styles
.cb add bold -text Bold
.cb add italic -text Italic
.cb add underline -text Underline
.cb select underline
pack .cb -padx 10 -pady 10 -fill both -expand yes
checkbox, widget