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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [OptMenu.html] - Blame information for rev 1781

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

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixOptionMenu - Create and manipulate tixOptionMenu widgets</TITLE>
5
<Center><H2>tixOptionMenu - Create and manipulate tixOptionMenu widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixOptionMenu<I> <I>pathName ?<I>options</I></B>?
9
<P>
10
</pre><H3>SUPER-CLASS</H3>
11
The <B>TixOptionMenu</B></I> class is derived from the <B>TixLabelWidget</B></I>
12
class and inherits all the commands, options and
13
subwidgets of its super-class.
14
</pre><H3>STANDARD OPTIONS</H3>
15
The OptionMenu widget supports all the standard Tix widget
16
options. See the <B>Tix-Options(n)</B></I> manual entry for details on the
17
standard Tix widget options.
18
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
19
<P>
20
<pre><code><code><code>
21
Name:           <B>command</B></I>
22
Class:          <B>Command</B></I>
23
Switch:         <B>-command</B></I>
24
</code></code></code></pre>
25
<UL>
26
Specifies the command to be called when the <B>-value</B></I> option of
27
the OptionMenu is changed. The command will be called with one
28
arguments -- the new value of the OptionMenu widget.
29
</UL>
30
<P>
31
<pre><code><code><code>
32
Name:           <B>disableCallback</B></I>
33
Class:          <B>DisableCallback</B></I>
34
Switch:         <B>-disablecallback</B></I>
35
</code></code></code></pre>
36
<UL>
37
A boolean value indicating whether callbacks should be disabled. When
38
set to true, the TCL command specified by the <B>-command</B></I> option
39
is not executed when the <B>-value</B></I> of the OptionMenu widget
40
changes.
41
</UL>
42
<P>
43
<pre><code><code><code>
44
Name:           <B>dynamicGeometry</B></I>
45
Class:          <B>DynamicGeometry</B></I>
46
Switch:         <B>-dynamicgeometry</B></I>
47
</code></code></code></pre>
48
<UL>
49
A boolean value indicating whether the size of the <B>menubutton</B></I>
50
subwidget should change dynamically to match the width of the
51
currently selected menu entry. If set to false (the default), the the
52
size of the menubutton subwidget will be wide enough to display every
53
menu entry fully and does not change when the user selects different
54
entries.
55
</UL>
56
<P>
57
<pre><code><code><code>
58
Name:           <B>label</B></I>
59
Class:          <B>Label</B></I>
60
Switch:         <B>-label</B></I>
61
</code></code></code></pre>
62
<UL>
63
Specifies the string to display as the label of this OptionMenu widget.
64
</UL>
65
<P>
66
<pre><code><code><code>
67
Name:           <B>labelSide</B></I>
68
Class:          <B>LabelSide</B></I>
69
Switch:         <B>-labelside</B></I>
70
</code></code></code></pre>
71
<UL>
72
Specifies where the label should be displayed relative to the entry
73
subwidget. Valid options are: <B>top</B></I>, <B>left</B></I>, <B>right</B></I>,
74
<B>bottom</B></I>, <B>none</B></I> or <B>acrosstop</B></I>.
75
</UL>
76
<P>
77
<pre><code><code><code>
78
Name:           <B>state</B></I>
79
Class:          <B>State</B></I>
80
Switch:         <B>-state</B></I>
81
</code></code></code></pre>
82
<UL>
83
Specifies the whether the OptionMenu widget is normal or disabled. Only
84
the values "normal" and "disabled" are recognized.
85
</UL>
86
<P>
87
<pre><code><code><code>
88
Name:           <B>value</B></I>
89
Class:          <B>Value</B></I>
90
Switch:         <B>-value</B></I>
91
</code></code></code></pre>
92
<UL>
93
Specifies the value of the OptionMenu. The value of the OptionMenu
94
widget is the name of the item currently displayed by its
95
<B>menubutton</B></I> subwidget.
96
</UL>
97
<P>
98
<pre><code><code><code>
99
Name:           <B>variable</B></I>
100
Class:          <B>Variable</B></I>
101
Switch:         <B>-variable</B></I>
102
</code></code></code></pre>
103
<UL>
104
Specifies the global variable in which the value of the OptionMenu
105
should be stored. The value of the OptionMenu will be automatically
106
updated when this variable is changed.
107
</UL>
108
</pre><H3>SUBWIDGETS</H3>
109
<P>
110
<pre><code><code><code>
111
Name:           <B>menu</B></I>
112
Class:          <B>Menu</B></I>
113
</code></code></code></pre>
114
<UL>
115
The menu subwidget, which is popped up when the user press the
116
<B>menubutton</B></I> subwidget.
117
</UL>
118
<P>
119
<pre><code><code><code>
120
Name:           <B>menubutton</B></I>
121
Class:          <B>Menubutton</B></I>
122
</code></code></code></pre>
123
<UL>
124
The menubutton subwidget.
125
</UL>
126
</pre><HR>
127
</pre><H3>DESCRIPTION</H3>
128
<P>
129
The <B>tixOptionMenu</B></I> command creates a new window (given by
130
the <I>pathName</I></B> argument) and makes it into a OptionMenu
131
widget. Additional options, described above, may be specified on the
132
command line or in the option database to configure aspects of the
133
OptionMenu such as its cursor and relief.
134
</pre><H3>WIDGET COMMANDS</H3>
135
<P>
136
The <B>tixOptionMenu</B></I> command creates a new Tcl command whose
137
window. This command may be used to invoke various operations on the
138
widget. It has the following general form:
139
<pre>
140
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
141
<P>
142
</pre>
143
<I>PathName</I></B> is the name of the command, which is the same as the
144
<I>arg</I></B>s determine the exact behavior of the command. The following
145
commands are possible for OptionMenu widgets:
146
<DL>
147
<DT> <I>pathName <B>add</B></I> <I>type name </I></B>?<I>option value ...</I></B>?
148
</I></B>
149
<DD> Adds a new item into the OptionMenu widget. <I>type</I></B> must be either
150
<B>command</B></I> or <B>separator</B></I>. The <I>options</I></B> may be any of the
151
valid options for the <B>command</B></I> or <B>separator</B></I> menu entry
152
types for the TK <B>menu</B></I> widget class, except <B>-command</B></I>.
153
</DL>
154
<DL>
155
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
156
</I></B>
157
<DD> Returns the current value of the configuration option given by
158
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
159
<B>tixOptionMenu</B></I> command.
160
</DL>
161
<DL>
162
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
163
</I></B>
164
<DD> Query or modify the configuration options of the widget.  If no
165
<I>option</I></B> is specified, returns a list describing all of the
166
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
167
information on the format of this list).  If <I>option</I></B> is specified
168
with no <I>value</I></B>, then the command returns a list describing the
169
one named option (this list will be identical to the corresponding
170
sublist of the value returned if no <I>option</I></B> is specified).  If
171
one or more <I>option-value</I></B> pairs are specified, then the command
172
modifies the given widget option(s) to have the given value(s); in
173
this case the command returns an empty string. <I>Option</I></B> may have
174
any of the values accepted by the <B>tixOptionMenu</B></I> command.
175
</DL>
176
<DL>
177
<DT> <I>pathName <B>delete</B></I> <I>name</I></B>
178
</I></B>
179
<DD> Deletes the menu entry identified by <I>name</I></B>.
180
</DL>
181
<DL>
182
<DT> <I>pathName <B>disable</B></I> <I>name</I></B>
183
</I></B>
184
<DD> Disables the menu entry identified by <I>name</I></B>.
185
</DL>
186
<DL>
187
<DT> <I>pathName <B>enable</B></I> <I>name</I></B>
188
</I></B>
189
<DD> Enables the menu entry identified by <I>name</I></B>.
190
</DL>
191
<DL>
192
<DT> <I>pathName <B>entrycget</B></I> <I>name option</I></B>
193
</I></B>
194
<DD> Returns the current value of the configuration option given by
195
<I>option</I></B> in the menu entry identified by <I>name</I></B>. <I>Option</I></B>
196
may have any of the values accepted by the <B>add</B></I> widget command.
197
</DL>
198
<DL>
199
<DT> <I>pathName <B>entryconfigure<I> name</I></B> ?<I>option</I></B>? <I>?value option value ...</I></B>?
200
</I></B>
201
<DD> Query or modify the configuration options of the menu entry identified
202
by <I>name</I></B>. If no <I>option</I></B> is specified, returns a list
203
describing all of the available options for the menu entry (see
204
<B>Tk_ConfigureInfo</B></I> for information on the format of this list).
205
If <I>option</I></B> is specified with no <I>value</I></B>, then the command
206
returns a list describing the one named option (this list will be
207
identical to the corresponding sublist of the value returned if no
208
<I>option</I></B> is specified). If one or more <I>option-value</I></B> pairs
209
are specified, then the command modifies the given option(s) to
210
have the given value(s); in this case the command returns an empty
211
string. <I>Option</I></B> may have any of the values accepted by the
212
<B>add</B></I> widget command.
213
</DL>
214
<DL>
215
<DT> <I>pathName <B>entries</B></I>
216
</I></B>
217
<DD> Returns the names of all the entries currently in the OptionMenu
218
widget.
219
</DL>
220
<DL>
221
<DT> <I>pathName <B>subwidget <I>name ?args?</I></B>
222
</I></B>
223
<DD> When no options are given, this command returns the pathname of the
224
subwidget of the specified name.
225
 
226
When options are given, the widget command of the specified subwidget
227
will be called with these options.
228
</DL>
229
</pre><H3>KEYWORDS</H3>
230
Tix(n)
231
<hr><i>Last modified Sun Jan 19 22:34:34 EST 1997 </i> ---
232
<i>Serial 853731303</i>

powered by: WebSVN 2.1.0

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