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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [OptMenu.n] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1996, Expert Interface Technologies
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
'\" The file man.macros and some of the macros used by this file are
8
'\" copyrighted: (c) 1990 The Regents of the University of California.
9
'\"              (c) 1994-1995 Sun Microsystems, Inc.
10
'\" The license terms of the Tcl/Tk distrobution are in the file
11
'\" license.tcl.
12
.so man.macros
13
'----------------------------------------------------------------------
14
.HS tixOptionMenu tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixOptionMenu \- Create and manipulate tixOptionMenu widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixOptionMenu\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixOptionMenu\fR class is derived from the \fBTixLabelWidget\fR
33
class and inherits all the commands, options and
34
subwidgets of its super-class.
35
'
36
'----------------------------------------------------------------------
37
.SH "STANDARD OPTIONS"
38
'
39
The OptionMenu widget supports all the standard Tix widget
40
options. See the \fBTix-Options(n)\fR manual entry for details on the
41
standard Tix widget options.
42
'
43
'----------------------------------------------------------------------
44
.SH "WIDGET-SPECIFIC OPTIONS"
45
'
46
'----------BEGIN
47
.LP
48
.nf
49
Name:           \fBcommand\fR
50
Class:          \fBCommand\fR
51
Switch:         \fB\-command\fR
52
.fi
53
.IP
54
Specifies the command to be called when the \fB\-value\fR option of
55
the OptionMenu is changed. The command will be called with one
56
arguments -- the new value of the OptionMenu widget.
57
'----------END
58
'
59
'----------BEGIN
60
.LP
61
.nf
62
Name:           \fBdisableCallback\fR
63
Class:          \fBDisableCallback\fR
64
Switch:         \fB\-disablecallback\fR
65
.fi
66
.IP
67
A boolean value indicating whether callbacks should be disabled. When
68
set to true, the TCL command specified by the \fB\-command\fR option
69
is not executed when the \fB\-value\fR of the OptionMenu widget
70
changes.
71
'----------END
72
'
73
'----------BEGIN
74
.LP
75
.nf
76
Name:           \fBdynamicGeometry\fR
77
Class:          \fBDynamicGeometry\fR
78
Switch:         \fB\-dynamicgeometry\fR
79
.fi
80
.IP
81
A boolean value indicating whether the size of the \fBmenubutton\fR
82
subwidget should change dynamically to match the width of the
83
currently selected menu entry. If set to false (the default), the the
84
size of the menubutton subwidget will be wide enough to display every
85
menu entry fully and does not change when the user selects different
86
entries.
87
'----------END
88
'
89
'----------BEGIN
90
.LP
91
.nf
92
Name:           \fBlabel\fR
93
Class:          \fBLabel\fR
94
Switch:         \fB\-label\fR
95
.fi
96
.IP
97
Specifies the string to display as the label of this OptionMenu widget.
98
'----------END
99
'
100
'----------BEGIN
101
.LP
102
.nf
103
Name:           \fBlabelSide\fR
104
Class:          \fBLabelSide\fR
105
Switch:         \fB\-labelside\fR
106
.fi
107
.IP
108
Specifies where the label should be displayed relative to the entry
109
subwidget. Valid options are: \fBtop\fR, \fBleft\fR, \fBright\fR,
110
\fBbottom\fR, \fBnone\fR or \fBacrosstop\fR.
111
'----------END
112
'
113
'----------BEGIN
114
.LP
115
.nf
116
Name:           \fBstate\fR
117
Class:          \fBState\fR
118
Switch:         \fB\-state\fR
119
.fi
120
.IP
121
Specifies the whether the OptionMenu widget is normal or disabled. Only
122
the values "normal" and "disabled" are recognized.
123
'----------END
124
'
125
'----------BEGIN
126
.LP
127
.nf
128
Name:           \fBvalue\fR
129
Class:          \fBValue\fR
130
Switch:         \fB\-value\fR
131
.fi
132
.IP
133
Specifies the value of the OptionMenu. The value of the OptionMenu
134
widget is the name of the item currently displayed by its
135
\fBmenubutton\fR subwidget.
136
'----------END
137
'
138
'----------BEGIN
139
.LP
140
.nf
141
Name:           \fBvariable\fR
142
Class:          \fBVariable\fR
143
Switch:         \fB\-variable\fR
144
.fi
145
.IP
146
Specifies the global variable in which the value of the OptionMenu
147
should be stored. The value of the OptionMenu will be automatically
148
updated when this variable is changed.
149
'----------END
150
'
151
'----------------------------------------------------------------------
152
.SH SUBWIDGETS
153
'----------BEGIN
154
.LP
155
.nf
156
Name:           \fBmenu\fR
157
Class:          \fBMenu\fR
158
.fi
159
.IP
160
The menu subwidget, which is popped up when the user press the
161
\fBmenubutton\fR subwidget.
162
'----------END
163
'
164
'----------BEGIN
165
.LP
166
.nf
167
Name:           \fBmenubutton\fR
168
Class:          \fBMenubutton\fR
169
.fi
170
.IP
171
The menubutton subwidget.
172
'----------END
173
.BE
174
'
175
'
176
'----------------------------------------------------------------------
177
.SH DESCRIPTION
178
'
179
.PP
180
'
181
The \fBtixOptionMenu\fR command creates a new window (given by
182
the \fIpathName\fR argument) and makes it into a OptionMenu
183
widget. Additional options, described above, may be specified on the
184
command line or in the option database to configure aspects of the
185
OptionMenu such as its cursor and relief.
186
'
187
'
188
'----------------------------------------------------------------------
189
.SH WIDGET COMMANDS
190
.PP
191
'
192
The \fBtixOptionMenu\fR command creates a new Tcl command whose
193
name is the same as the path name of the OptionMenu's
194
window. This command may be used to invoke various operations on the
195
widget. It has the following general form:
196
'
197
.DS C
198
'
199
\fIpathName option \fR?\fIarg arg ...\fR?
200
.PP
201
.DE
202
'
203
\fIPathName\fR is the name of the command, which is the same as the
204
OptionMenu widget's path name. \fIOption\fR and the
205
\fIarg\fRs determine the exact behavior of the command. The following
206
commands are possible for OptionMenu widgets:
207
'
208
'
209
.TP
210
\fIpathName \fBadd\fR \fItype name \fR?\fIoption value ...\fR?
211
'
212
Adds a new item into the OptionMenu widget. \fItype\fR must be either
213
\fBcommand\fR or \fBseparator\fR. The \fIoptions\fR may be any of the
214
valid options for the \fBcommand\fR or \fBseparator\fR menu entry
215
types for the TK \fBmenu\fR widget class, except \fB\-command\fR.
216
'
217
.TP
218
\fIpathName \fBcget\fR \fIoption\fR
219
'
220
Returns the current value of the configuration option given by
221
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
222
\fBtixOptionMenu\fR command.
223
'
224
.TP
225
'
226
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
227
'
228
Query or modify the configuration options of the widget.  If no
229
\fIoption\fR is specified, returns a list describing all of the
230
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
231
information on the format of this list).  If \fIoption\fR is specified
232
with no \fIvalue\fR, then the command returns a list describing the
233
one named option (this list will be identical to the corresponding
234
sublist of the value returned if no \fIoption\fR is specified).  If
235
one or more \fIoption\-value\fR pairs are specified, then the command
236
modifies the given widget option(s) to have the given value(s); in
237
this case the command returns an empty string. \fIOption\fR may have
238
any of the values accepted by the \fBtixOptionMenu\fR command.
239
'
240
.TP
241
\fIpathName \fBdelete\fR \fIname\fR
242
'
243
Deletes the menu entry identified by \fIname\fR.
244
'
245
'
246
.TP
247
\fIpathName \fBdisable\fR \fIname\fR
248
'
249
Disables the menu entry identified by \fIname\fR.
250
'
251
.TP
252
\fIpathName \fBenable\fR \fIname\fR
253
'
254
Enables the menu entry identified by \fIname\fR.
255
'
256
'
257
.TP
258
\fIpathName \fBentrycget\fR \fIname option\fR
259
'
260
Returns the current value of the configuration option given by
261
\fIoption\fR in the menu entry identified by \fIname\fR. \fIOption\fR
262
may have any of the values accepted by the \fBadd\fR widget command.
263
'
264
.TP
265
'
266
\fIpathName \fBentryconfigure\fI name\fR ?\fIoption\fR? \fI?value option value ...\fR?
267
'
268
Query or modify the configuration options of the menu entry identified
269
by \fIname\fR. If no \fIoption\fR is specified, returns a list
270
describing all of the available options for the menu entry (see
271
\fBTk_ConfigureInfo\fR for information on the format of this list).
272
If \fIoption\fR is specified with no \fIvalue\fR, then the command
273
returns a list describing the one named option (this list will be
274
identical to the corresponding sublist of the value returned if no
275
\fIoption\fR is specified). If one or more \fIoption\-value\fR pairs
276
are specified, then the command modifies the given option(s) to
277
have the given value(s); in this case the command returns an empty
278
string. \fIOption\fR may have any of the values accepted by the
279
\fBadd\fR widget command.
280
'
281
.TP
282
\fIpathName \fBentries\fR
283
'
284
Returns the names of all the entries currently in the OptionMenu
285
widget.
286
'
287
.TP
288
\fIpathName \fBsubwidget \fIname ?args?\fR
289
'
290
When no options are given, this command returns the pathname of the
291
subwidget of the specified name.
292
 
293
When options are given, the widget command of the specified subwidget
294
will be called with these options.
295
'
296
'
297
'
298
'----------------------------------------------------------------------
299
'.SH BINDINGS
300
'.PP
301
'
302
'
303
'
304
'----------------------------------------------------------------------
305
.SH KEYWORDS
306
Tix(n)

powered by: WebSVN 2.1.0

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