![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::promptdialog - Create and manipulate a prompt dialog
widget
iwidgets::promptdialog pathName
?options?
itk::Toplevel <- iwidgets::Dialogshell <- iwidgets::Dialog
<- iwidgets::Promptdialog
background borderWidth cursor exportSelection
options.
show
associated options.
associated options.
labelFont labelPos labelText
above associated options.
buttonBoxPadX buttonBoxPadY buttonBoxPos padX
above inherited options.
height master modality width
inherited options.
title
inherited options.
_________________________________________________________________
lar to the OSF/Motif standard prompt dialog composite widget.
of a EntryField with commands to manipulate the dialog buttons.
whose name is pathName. This command may be used to invoke vari- ous operations on the widget. It has the following general form:
pathName option ?arg arg ...?
delete get icursor index insert scan selection xview
associated methods.
clear
associated methods.
add buttonconfigure defaulthide
inherited methods.
childsite
above inherited methods.
activate center deactivate
inherited methods.
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::promptdialog 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::promptdialog command.
prompt dialog. See the «entryfield» widget manual entry for details on the prompt component item.
package require Iwidgets 4.0
option add *textBackground white
iwidgets::promptdialog .pd -modality global -title Password -labeltext Password: -show * .pd hide Apply
if {[.pd activate]} {
puts «Password entered: [.pd get]"
} else {
puts «Password prompt cancelled"
}
promptdialog, dialog, dialogshell, shell, widget