![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::buttonbox - Create and manipulate a manager widget for
buttons
iwidgets::buttonbox pathName ?options?
itk::Widget <- iwidgets::buttonbox
options.
default is horizontal.
button group and the outer edge of the button box in the x direc- tion. The value may be given in any of the forms acceptable to
button group and the outer edge of the button box in the y direc- tion. The value may be given in any of the forms acceptable to
_________________________________________________________________
trolling buttons. The button box also supports the display and invocation of a default button. The button box can be configured either horizontally or vertically.
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 ...?
ment an indicator of which button of the button box to operate on. These indicators are called indexes and allow reference and manipulation of buttons regardless of their current map state. buttonbox indexes may be specified in any of the following forms:
pathName add tag args
applied to the button. See PushButton for information on
the options available.
pathName buttonconfigure index
?options?
applies to the options for an individual button, whereas config- ure applies to the options for the button box 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::buttonbox 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::buttonbox command.
pathName default index
causes the default ring to appear arround the specified button.
pathName delete index
pathName hide index
ton permanently, just inhibits its display.
pathName index index
pathName insert index tag ?option value option value ...?
just before the one given by index, instead of appending
to the end of the button box. The option, and value
arguments have the same interpretation as for the add widget
command. pathName invoke ?index?
given then the current default button is invoked, otherwise the
argument is expected to be a button index.
pathName show index
package require Iwidgets 4.0
iwidgets::buttonbox .bb
.bb add Yes -text Yes -command «puts Yes"
.bb add No -text No -command «puts No"
.bb add Maybe -text Maybe -command «puts Maybe" .bb default
Yes
pack .bb -expand yes -fill both
buttonbox, pushbutton, button, widget