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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [messagedialog.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
'\" @(#) messagedialog.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS messagedialog iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
messagedialog \- Create and manipulate a message dialog widget
15
.SH SYNOPSIS
16
\fBmessagedialog\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Toplevel <- Shell <- Dialogshell <- Dialog <- Messagedialog
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBbitmap\fR    \fBcursor\fR    \fBfont\fR
24
\fBforeground\fR        \fBimage\fR     \fBtext\fR
25
.fi
26
.LP
27
See the "options" manual entry for details on the standard options.
28
.SH "INHERITED OPTIONS"
29
.LP
30
.nf
31
.ta 4c 8c 12c
32
\fBbuttonBoxPadX\fR     \fBbuttonBoxPadY\fR     \fBbuttonBoxPos\fR      \fBpadX\fR
33
\fBpadY\fR      \fBseparator\fR \fBthickness\fR
34
.fi
35
.LP
36
See the "dialogshell" widget manual entry for details on the above
37
inherited options.
38
.LP
39
.nf
40
.ta 4c 8c 12c
41
\fBmaster\fR    \fBmodality\fR
42
.fi
43
.LP
44
See the "shell" widget manual entry for details on the above
45
inherited options.
46
.LP
47
.nf
48
.ta 4c 8c 12c
49
\fBtitle\fR
50
.fi
51
.LP
52
See the "Toplevel" widget manual entry for details on the above
53
inherited options.
54
.LP
55
.SH "WIDGET-SPECIFIC OPTIONS"
56
.LP
57
.nf
58
Name:   \fBimagePos\fR
59
Class:  \fBPosition\fR
60
Command-Line Switch:    \fB-imagepos\fR
61
.fi
62
.IP
63
Specifies the image position relative to the message text: \fBn\fR, \fBs\fR,
64
\fBe\fR, or \fBw\fR.  The default is w.
65
.LP
66
.nf
67
Name:   \fBtextPadX\fR
68
Class:  \fBPad\fR
69
Command-Line Switch:    \fB-textpadx\fR
70
.fi
71
.IP
72
Specifies a non-negative value indicating how much extra space to request for
73
the message text in the X direction.  The value may have any of the forms
74
acceptable to Tk_GetPixels.
75
.LP
76
.nf
77
Name:   \fBtextPadY\fR
78
Class:  \fBPad\fR
79
Command-Line Switch:    \fB-textpady\fR
80
.fi
81
.IP
82
Specifies a non-negative value indicating how much extra space to request for
83
the message text in the X direction.  The value may have any of the forms
84
acceptable to Tk_GetPixels.
85
.LP
86
.BE
87
 
88
.SH DESCRIPTION
89
.PP
90
The \fBmessagedialog\fR command creates a message dialog composite widget.
91
The messagedialog is derived from the Dialog class and is composed of
92
an image and associated message text with commands to manipulate the
93
dialog buttons.
94
 
95
.SH "METHODS"
96
.PP
97
The \fBmessagedialog\fR command creates a new Tcl command whose
98
name is \fIpathName\fR.  This
99
command may be used to invoke various
100
operations on the widget.  It has the following general form:
101
.DS C
102
\fIpathName option \fR?\fIarg arg ...\fR?
103
.DE
104
\fIOption\fR and the \fIarg\fRs
105
determine the exact behavior of the command.  The following
106
commands are possible for messagedialog widgets:
107
 
108
.SH "INHERITED METHODS"
109
.LP
110
.nf
111
.ta 4c 8c 12c
112
\fBadd\fR       \fBbuttonconfigure\fR   \fBdefault\fR   \fBhide\fR
113
\fBinsert\fR    \fBinvoke\fR    \fBshow\fR
114
.fi
115
.LP
116
See the "buttonbox" widget manual entry for details on the above
117
inherited methods.
118
.LP
119
.nf
120
.ta 4c 8c 12c
121
\fBchildsite\fR
122
.fi
123
.LP
124
See the "dialogshell" widget manual entry for details on the above
125
inherited methods.
126
.LP
127
.nf
128
.ta 4c 8c 12c
129
\fBactivate\fR  \fBcenter\fR    \fBdeactivate\fR
130
.fi
131
.LP
132
See the "dialogshell" widget manual entry for details on the above
133
inherited methods.
134
.SH "WIDGET-SPECIFIC METHODS"
135
.TP
136
\fIpathName \fBcget\fR \fIoption\fR
137
Returns the current value of the configuration option given
138
by \fIoption\fR.
139
\fIOption\fR may have any of the values accepted by the \fBmessagedialog\fR
140
command.
141
.TP
142
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
143
Query or modify the configuration options of the widget.
144
If no \fIoption\fR is specified, returns a list describing all of
145
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
146
information on the format of this list).  If \fIoption\fR is specified
147
with no \fIvalue\fR, then the command returns a list describing the
148
one named option (this list will be identical to the corresponding
149
sublist of the value returned if no \fIoption\fR is specified).  If
150
one or more \fIoption\-value\fR pairs are specified, then the command
151
modifies the given widget option(s) to have the given value(s);  in
152
this case the command returns an empty string.
153
\fIOption\fR may have any of the values accepted by the \fBmessagedialog\fR
154
command.
155
 
156
.SH "COMPONENTS"
157
.LP
158
.nf
159
Name:   \fBimage\fR
160
Class:  \fBLabel\fR
161
.fi
162
.IP
163
The image component is the bitmap or image of the message dialog.  See
164
the "label" widget manual entry for details on the image component item.
165
.LP
166
.nf
167
Name:   \fBmessage\fR
168
Class:  \fBLabel\fR
169
.fi
170
.IP
171
The message component provides the textual portion of the message dialog.
172
See the "label" widget manual entry for details on the message component item.
173
.fi
174
 
175
.SH EXAMPLE
176
.DS
177
 #
178
 # Standard question message dialog used for confirmation.
179
 #
180
 messagedialog .md -title "Message Dialog" -text "Are you sure ?" \\
181
        -bitmap questhead -modality global
182
 
183
 .md buttonconfigure OK -text Yes
184
 .md buttonconfigure Cancel -text No
185
 
186
 if {[.md activate]} {
187
    .md configure -text "Are you really sure ?"
188
    if {[.md activate]} {
189
        puts stdout "Yes"
190
    } else {
191
        puts stdout "No"
192
    }
193
 } else {
194
    puts stdout "No"
195
 }
196
 
197
 destroy .md
198
 
199
 #
200
 # Copyright notice with automatic deactivation.
201
 #
202
 messagedialog .cr -title "Copyright" -bitmap @dsc.xbm -imagepos n \\
203
     -text "Copyright 1995 DSC Communications Corporation\\n \\
204
            All rights reserved"
205
 
206
 .cr hide Cancel
207
 
208
 .cr activate
209
 after 10000 ".cr deactivate"
210
.DE
211
.SH AUTHOR
212
Mark L. Ulferts
213
.SH KEYWORDS
214
messagedialog, dialog, dialogshell, shell, widget

powered by: WebSVN 2.1.0

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