![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::dialogshell - Create and manipulate a dialog shell
wid- get
iwidgets::dialogshell pathName
?options?
itk::Toplevel <- iwidgets::Shell <- iwidgets::Dialogshell
background cursor foreground
options.
height master modality width
options.
title
ited options.
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 accpetable 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 accpetable to
in any of the forms acceptable to Tk_GetPixels. The
default is 10.
in any of the forms acceptable to Tk_GetPixels. The
default is 10.
the dialog box contents in any of the forms acceptable to
acceptable to Tk_GetPixels. The default is 3 pixels. _________________________________________________________________
a top level widget composed of a button box, separator, and child site area. The class also has methods to control button con- struction.
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 ...?
activate center deactivate
methods.
add buttonconfigure defaultdelete
methods.
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::dialogshell command.
pathName childsite
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::dialogshell command.
shell. See the «frame» widget manual entry for
details on the dschildsite component item.
site and the button box. See the «frame» widget
manual entry for details on the separator component item.
the dialog shell. See the «ButtonBox» widget manual entry for details on the bbox component item.
package require Iwidgets 4.0
iwidgets::dialogshell .ds -modality none
.ds add OK -text «OK"
.ds add Cancel -text «Cancel"
.ds default OK
.ds activate
dialogshell, dialog, shell, widget