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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [dialogshell.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
'\" @(#) dialogshell.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS dialogshell iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
dialogshell \- Create and manipulate a dialog shell widget
15
.SH SYNOPSIS
16
\fBdialogshell\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Toplevel <- Shell <- Dialogshell
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBcursor\fR    \fBforeground\fR
24
.fi
25
.LP
26
See the "options" manual entry for details on the standard options.
27
.SH "INHERITED OPTIONS"
28
.LP
29
.nf
30
.ta 4c 8c 12c
31
\fBheight\fR    \fBmaster\fR    \fBmodality\fR  \fBwidth\fR
32
.fi
33
.LP
34
See the "shell" manual entry for details on the above inherited options.
35
.LP
36
.nf
37
.ta 4c 8c 12c
38
\fBtitle\fR
39
.fi
40
.LP
41
See the "Toplevel" manual entry for details on the above inherited options.
42
 
43
.SH "WIDGET-SPECIFIC OPTIONS"
44
.LP
45
.nf
46
Name:   \fBbuttonBoxPadX\fR
47
Class:  \fBPad\fR
48
Command-Line Switch:    \fB-buttonboxpadx\fR
49
.fi
50
.IP
51
Specifies a non-negative padding distance to leave between the button group and
52
the outer edge of the button box in the x direction.  The value may be
53
given in any of the forms accpetable to \fBTk_GetPixels\fR.  The default
54
is 5 pixels.
55
.LP
56
.nf
57
Name:   \fBbuttonBoxPadY\fR
58
Class:  \fBPad\fR
59
Command-Line Switch:    \fB-buttonboxpady\fR
60
.fi
61
.IP
62
Specifies a non-negative padding distance to leave between the button group and
63
the outer edge of the button box in the y direction.  The value may be
64
given in any of the forms accpetable to \fBTk_GetPixels\fR.  The default
65
is 5 pixels.
66
.LP
67
.nf
68
Name:   \fBbuttonBoxPos\fR
69
Class:  \fBPosition\fR
70
Command-Line Switch:    \fB-buttonboxpos\fR
71
.fi
72
.IP
73
Attaches buttons to the given side of the dialog: \fBn\fR, \fBs\fR,
74
\fBe\fR or \fBw\fR.  The default is s.
75
.LP
76
.nf
77
Name:   \fBpadX\fR
78
Class:  \fBPad\fR
79
Command-Line Switch:    \fB-padx\fR
80
.fi
81
.IP
82
Specifies a padding distance for the childsite in the X-direction in
83
any of the forms acceptable to \fBTk_GetPixels\fR.  The default is 10.
84
.LP
85
.nf
86
Name:   \fBpadY\fR
87
Class:  \fBPad\fR
88
Command-Line Switch:    \fB-pady\fR
89
.fi
90
.IP
91
Specifies a padding distance for the childsite in the Y-direction in
92
any of the forms acceptable to \fBTk_GetPixels\fR.  The default is 10.
93
.LP
94
.nf
95
Name:   \fBseparator\fR
96
Class:  \fBSeparator\fR
97
Command-Line Switch:    \fB-separator\fR
98
.fi
99
.IP
100
Specifies whether a line is drawn to separate the
101
buttons from the dialog box contents in any of the forms
102
acceptable to \fBTcl_GetBoolean\fR.  The default is true.
103
.LP
104
.nf
105
Name:   \fBthickness\fR
106
Class:  \fBThickness\fR
107
Command-Line Switch:    \fB-thickness\fR
108
.fi
109
.IP
110
Specifies the thickness of the separator in any of the forms acceptable
111
to \fBTk_GetPixels\fR.  The default is 3 pixels.
112
.BE
113
 
114
.SH DESCRIPTION
115
.PP
116
The \fBdialogshell\fR command creates a dialog shell which is a top
117
level widget composed of a button box, separator, and child site area.
118
The class also has methods to control button construction.
119
 
120
.SH "METHODS"
121
.PP
122
The \fBdialogshell\fR command create a new Tcl command whose
123
name is \fIpathName\fR.  This command may be used to invoke various
124
operations on the widget.  It has the following general form:
125
.DS C
126
\fIpathName option \fR?\fIarg arg ...\fR?
127
.DE
128
\fIOption\fR and the \fIarg\fRs
129
determine the exact behavior of the command.  The following
130
commands are possible for dialogshell widgets:
131
.SH "INHERITED METHODS"
132
.LP
133
.nf
134
.ta 4c 8c 12c
135
\fBactivate\fR  \fBcenter\fR    \fBdeactivate\fR
136
.fi
137
.LP
138
See the "shell" manual entry for details on the above inherited methods.
139
.SH "ASSOCIATED METHODS"
140
.LP
141
.nf
142
.ta 4c 8c 12c
143
\fBadd\fR       \fBbuttonconfigure\fR   \fBdefault\fR   \fBdelete\fR
144
\fBhide\fR      \fBindex\fR     \fBinsert\fR    \fBinvoke\fR
145
\fBshow\fR
146
.fi
147
.LP
148
See the "buttonbox" manual entry for details on the associated methods.
149
.SH "WIDGET-SPECIFIC METHODS"
150
.TP
151
\fIpathName \fBcget\fR \fIoption\fR
152
Returns the current value of the configuration option given
153
by \fIoption\fR.
154
\fIOption\fR may have any of the values accepted by the \fBdialogshell\fR
155
command.
156
.TP
157
\fIpathName \fBchildsite\fR
158
Returns the pathname of the child site widget.
159
.TP
160
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
161
Query or modify the configuration options of the widget.
162
If no \fIoption\fR is specified, returns a list describing all of
163
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
164
information on the format of this list).  If \fIoption\fR is specified
165
with no \fIvalue\fR, then the command returns a list describing the
166
one named option (this list will be identical to the corresponding
167
sublist of the value returned if no \fIoption\fR is specified).  If
168
one or more \fIoption\-value\fR pairs are specified, then the command
169
modifies the given widget option(s) to have the given value(s);  in
170
this case the command returns an empty string.
171
\fIOption\fR may have any of the values accepted by the \fBdialogshell\fR
172
command.
173
 
174
.SH "COMPONENTS"
175
.LP
176
.nf
177
Name:   \fBdschildsite\fR
178
Class:  \fBframe\fR
179
.fi
180
.IP
181
The dschildsite component is the user child site for the dialog shell.  See
182
the "frame" widget manual entry for details on the dschildsite component item.
183
.LP
184
.nf
185
Name:   \fBseparator\fR
186
Class:  \fBframe\fR
187
.fi
188
.IP
189
The separator component devides the area between the user child site and
190
the button box.  See the "frame" widget manual entry for details on the
191
separator component item.
192
.LP
193
.nf
194
Name:   \fBbbox\fR
195
Class:  \fBButtonBox\fR
196
.fi
197
.IP
198
The bbox component is the button box containing the buttons for the dialog
199
shell.  See the "ButtonBox" widget manual entry for details on the
200
bbox component item.
201
.fi
202
 
203
.SH EXAMPLE
204
.DS
205
 dialogshell .ds -modality none
206
 
207
 .ds add OK -text "OK"
208
 .ds add Cancel -text "Cancel"
209
 .ds default OK
210
 
211
 .ds activate
212
.DE
213
.SH AUTHOR
214
Mark L. Ulferts
215
.SH KEYWORDS
216
dialogshell, dialog, shell, widget

powered by: WebSVN 2.1.0

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