OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [promptdialog.n] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1995 DSC Technologies Corporation
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" @(#) promptdialog.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS promptdialog iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
promptdialog \- Create and manipulate a prompt dialog widget
15
.SH SYNOPSIS
16
\fBpromptdialog\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Toplevel <- dialogshell <- dialog <- promptdialog
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR    \fBexportSelection\fR
24
\fBforeground\fR        \fBhighlightColor\fR    \fBhighlightThickness\fR        \fBinsertBackground\fR
25
\fBinsertBorderWidth\fR \fBinsertOffTime\fR     \fBinsertOnTime\fR      \fBinsertWidth\fR
26
\fBrelief\fR    \fBselectBackground\fR  \fBselectBorderWidth\fR \fBselectForeground\fR
27
.fi
28
.LP
29
See the "options" manual entry for details on the standard options.
30
.SH "ASSOCIATED OPTIONS"
31
.LP
32
.nf
33
.ta 4c 8c 12c
34
\fBshow\fR
35
.fi
36
.LP
37
See the "entry" widget manual entry for details on the above
38
associated options.
39
.LP
40
.nf
41
.ta 4c 8c 12c
42
\fBinvalid\fR   \fBtextBackground\fR    \fBtextFont\fR  \fBvalidate\fR
43
.fi
44
.LP
45
See the "entryfield" widget manual entry for details on the above
46
associated options.
47
.LP
48
.nf
49
.ta 4c 8c 12c
50
\fBlabelFont\fR \fBlabelPos\fR  \fBlabelText\fR
51
.fi
52
.LP
53
See the "labeledwidget" widget manual entry for details on the above
54
associated options.
55
.SH "INHERITED OPTIONS"
56
.LP
57
.nf
58
.ta 4c 8c 12c
59
\fBbuttonBoxPadX\fR     \fBbuttonBoxPadY\fR     \fBbuttonBoxPos\fR      \fBpadX\fR
60
\fBpadY\fR      \fBseparator\fR \fBthickness\fR
61
.fi
62
.LP
63
See the "dialogshell" widget manual entry for details on the above
64
inherited options.
65
.LP
66
.nf
67
.ta 4c 8c 12c
68
\fBheight\fR    \fBmaster\fR    \fBmodality\fR  \fBwidth\fR
69
.fi
70
.LP
71
See the "shell" widget manual entry for details on the above
72
inherited options.
73
.LP
74
.nf
75
.ta 4c 8c 12c
76
\fBtitle\fR
77
.fi
78
.LP
79
See the "Toplevel" widget manual entry for details on the above
80
inherited options.
81
.LP
82
.BE
83
 
84
.SH DESCRIPTION
85
.PP
86
The \fBpromptdialog\fR command creates a prompt dialog similar to the
87
OSF/Motif standard prompt dialog composite widget.  The promptdialog
88
is derived from the dialog class and is composed of a EntryField
89
with commands to manipulate the dialog buttons.
90
 
91
.SH "METHODS"
92
.PP
93
The \fBpromptdialog\fR command creates a new Tcl command whose
94
name is \fIpathName\fR.  This
95
command may be used to invoke various
96
operations on the widget.  It has the following general form:
97
.DS C
98
\fIpathName option \fR?\fIarg arg ...\fR?
99
.DE
100
\fIOption\fR and the \fIarg\fRs
101
determine the exact behavior of the command.  The following
102
commands are possible for promptdialog widgets:
103
.SH "ASSOCIATED METHODS"
104
.LP
105
.nf
106
.ta 4c 8c 12c
107
\fBdelete\fR    \fBget\fR       \fBicursor\fR   \fBindex\fR
108
\fBinsert\fR    \fBscan\fR      \fBselection\fR \fBxview\fR
109
.fi
110
.LP
111
See the "entry" widget manual entry for details on the above
112
associated methods.
113
.LP
114
.nf
115
.ta 4c 8c 12c
116
\fBclear\fR
117
.fi
118
.LP
119
See the "entryfield" widget manual entry for details on the above
120
associated methods.
121
.SH "INHERITED METHODS"
122
.LP
123
.nf
124
.ta 4c 8c 12c
125
\fBadd\fR       \fBbuttonconfigure\fR   \fBdefault\fR   \fBhide\fR
126
\fBinvoke\fR    \fBshow\fR
127
.fi
128
.LP
129
See the "buttonbox" widget manual entry for details on the above
130
inherited methods.
131
.LP
132
.nf
133
.ta 4c 8c 12c
134
\fBchildsite\fR
135
.fi
136
.LP
137
See the "dialogshell" widget manual entry for details on the above
138
inherited methods.
139
.LP
140
.nf
141
.ta 4c 8c 12c
142
\fBactivate\fR  \fBcenter\fR    \fBdeactivate\fR
143
.fi
144
.LP
145
See the "shell" widget manual entry for details on the above
146
inherited methods.
147
 
148
.SH "WIDGET-SPECIFIC METHODS"
149
.TP
150
\fIpathName \fBcget\fR \fIoption\fR
151
Returns the current value of the configuration option given
152
by \fIoption\fR.
153
\fIOption\fR may have any of the values accepted by the \fBpromptdialog\fR
154
command.
155
.TP
156
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
157
Query or modify the configuration options of the widget.
158
If no \fIoption\fR is specified, returns a list describing all of
159
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
160
information on the format of this list).  If \fIoption\fR is specified
161
with no \fIvalue\fR, then the command returns a list describing the
162
one named option (this list will be identical to the corresponding
163
sublist of the value returned if no \fIoption\fR is specified).  If
164
one or more \fIoption\-value\fR pairs are specified, then the command
165
modifies the given widget option(s) to have the given value(s);  in
166
this case the command returns an empty string.
167
\fIOption\fR may have any of the values accepted by the \fBpromptdialog\fR
168
command.
169
 
170
.SH "COMPONENTS"
171
.LP
172
.nf
173
Name:   \fBprompt\fR
174
Class:  \fBEntryfield\fR
175
.fi
176
.IP
177
The prompt component is the entry field for user input in the prompt
178
dialog.  See the "entryfield" widget manual entry for details on
179
the prompt component item.
180
.fi
181
 
182
.SH EXAMPLE
183
.DS
184
 option add *textBackground white
185
 
186
 promptdialog .pd -modality global -title Password -labeltext Password: -show *
187
 .pd hide Apply
188
 
189
 if {[.pd activate]} {
190
     puts "Password entered: [.pd get]"
191
 } else {
192
     puts "Password prompt cancelled"
193
 }
194
.DE
195
.SH AUTHOR
196
Mark L. Ulferts
197
.SH KEYWORDS
198
promptdialog, dialog, dialogshell, shell, widget

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.