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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [SListBox.html] - Blame information for rev 1767

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

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixScrolledListBox - Create and manipulate Tix ScrolledListBox widgets</TITLE>
5
<Center><H2>tixScrolledListBox - Create and manipulate Tix ScrolledListBox widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixScrolledListBox<I> <I>pathName ?<I>options</I></B>?
9
</pre><H3>STANDARD OPTIONS</H3>
10
<P>
11
<pre><code><code><code>
12
<B>
13
anchor  background      cursor
14
relief  borderWidth
15
</B></I>
16
</code></code></code></pre>
17
<P>
18
See the <B>options(n)</B></I> manual entry for details on the standard options.
19
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
20
<P>
21
<pre><code><code><code>
22
Name:           <B>anchor</B></I>
23
Class:          <B>Anchor</B></I>
24
Switch:         <B>-anchor</B></I>
25
</code></code></code></pre>
26
<UL>
27
Specifies the alignment of the items inside the listbox subwidget.
28
Only the values <B>w</B></I> and <B>e</B></I> are allowed. When set to <B>w</B></I>,
29
the listbox is automatically aligned to the beginning of the items.
30
When set to <B>e</B></I>, the listbox is automatically aligned to the end
31
of the items.  Automatically alignment only happens when the
32
ScrolledListBox widget changes its size.
33
</UL>
34
<P>
35
<pre><code><code><code>
36
Name:           <B>browsecmd</B></I>
37
Class:          <B>BrowseCmd</B></I>
38
Switch:         <B>-browsecmd</B></I>
39
</code></code></code></pre>
40
<UL>
41
Specifies the command to be called when the user browses the elements
42
inside the <B>listbox</B></I> subwidget (see the BINDINGS section below).
43
</UL>
44
<P>
45
<pre><code><code><code>
46
Name:           <B>command</B></I>
47
Class:          <B>Command</B></I>
48
Switch:         <B>-command</B></I>
49
</code></code></code></pre>
50
<UL>
51
Specifies the command to be called when the user invokes the <B>listbox</B></I>
52
subwidget (see the BINDINGS section below).
53
</UL>
54
<P>
55
<pre><code><code><code>
56
Name:           <B>height</B></I>
57
Class:          <B>Height</B></I>
58
Switch:         <B>-height</B></I>
59
</code></code></code></pre>
60
<UL>
61
Specifies the desired height for the window, in pixels.
62
</UL>
63
<P>
64
<pre><code><code><code>
65
Name:           <B>scrollbar</B></I>
66
Class:          <B>Scrollbar</B></I>
67
Switch:         <B>-scrollbar</B></I>
68
</code></code></code></pre>
69
<UL>
70
Specifies the display policy of the scrollbars. The following
71
values are recognized:
72
</UL>
73
<UL>
74
<DL>
75
<DT> <B>auto</B></I> </B></I>?<I>\+x</I></B>? </B></I>?<I>-x</I></B>? </B></I>?<I>\+y</I></B>? </B></I>?<I>-y</I></B>?
76
</I></B>
77
<DD> When <B>-scrollbar</B></I> is set to "<B>auto</B></I>", the scrollbars are
78
shown only when needed. Additional modifiers can be used to force a
79
scrollbar to be shown or hidden. For example, "<B>auto -y</B></I>" means
80
the horizontal scrollbar should be shown when needed but the vertical
81
scrollbar should always be hidden; "<B>auto +x</B></I>" means the vertical
82
scrollbar should be shown when needed but the horizontal scrollbar
83
should always be shown, and so on.
84
</DL>
85
<DL>
86
<DT> <B>both</B></I>
87
</I></B>
88
<DD> Both scrollbars are shown
89
</DL>
90
<DL>
91
<DT> <B>none</B></I>
92
</I></B>
93
<DD> The scrollbars are never shown.
94
</DL>
95
<DL>
96
<DT> <B>x</B></I>
97
</I></B>
98
<DD> Only the horizontal scrollbar is shown;
99
</DL>
100
<DL>
101
<DT> <B>y</B></I>
102
</I></B>
103
<DD> Only the vertical scrollbar is shown.
104
</DL>
105
</UL>
106
<P>
107
<pre><code><code><code>
108
Name:           <B>width</B></I>
109
Class:          <B>Width</B></I>
110
Switch:         <B>-width</B></I>
111
</code></code></code></pre>
112
<UL>
113
Specifies the desired width for the window, in pixels.
114
</UL>
115
</pre><H3>SUBWIDGETS</H3>
116
<P>
117
<pre><code><code><code>
118
Name:           <B>hsb</B></I>
119
Class:          <B>Scrollbar</B></I>
120
</code></code></code></pre>
121
<UL>
122
The horizontal scrollbar subwidget.
123
</UL>
124
<P>
125
<pre><code><code><code>
126
Name:           <B>listbox</B></I>
127
Class:          <B>Listbox</B></I>
128
</code></code></code></pre>
129
<UL>
130
The listbox subwidget inside the ScrolledListBox widget.
131
</UL>
132
<P>
133
<pre><code><code><code>
134
Name:           <B>vsb</B></I>
135
Class:          <B>Scrollbar</B></I>
136
</code></code></code></pre>
137
<UL>
138
The vertical scrollbar subwidget.
139
</UL>
140
</pre><HR>
141
</pre><H3>DESCRIPTION</H3>
142
<P>
143
The <B>tixScrolledListBox</B></I> command creates a new window (given by the
144
<I>pathName</I></B> argument) and makes it into a ScrolledListBox widget.
145
Additional options, described above, may be specified on the command
146
line or in the option database to configure aspects of the
147
ScrolledListBox widget such as its cursor and relief.
148
</pre><H3>WIDGET COMMANDS</H3>
149
<P>
150
The <B>tixScrolledListBox</B></I> command creates a new Tcl command whose
151
window. This command may be used to invoke various operations on the
152
widget. It has the following general form:
153
<pre>
154
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
155
 
156
</pre>
157
<I>PathName</I></B> is the name of the command, which is the same as the
158
determine the exact behavior of the command.  The following commands
159
are possible for ScrolledListBox widgets:
160
<DL>
161
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
162
</I></B>
163
<DD> Returns the current value of the configuration option given by
164
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
165
<B>tixScrolledListBox</B></I> command.
166
</DL>
167
<DL>
168
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
169
</I></B>
170
<DD> Query or modify the configuration options of the widget.  If
171
no <I>option</I></B> is specified, returns a list describing all of the
172
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
173
information on the format of this list).  If <I>option</I></B> is specified
174
with no <I>value</I></B>, then the command returns a list describing the
175
one named option (this list will be identical to the corresponding
176
sublist of the value returned if no <I>option</I></B> is specified).  If
177
one or more <I>option-value</I></B> pairs are specified, then the command
178
modifies the given widget option(s) to have the given value(s); in
179
this case the command returns an empty string.  <I>Option</I></B> may have
180
any of the values accepted by the <B>tixScrolledListBox</B></I> command.
181
</DL>
182
<DL>
183
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
184
</I></B>
185
<DD> When no additional arguments are given, returns the pathname of the
186
subwidget of the specified name.
187
 
188
When no additional arguments are given, the widget command of the
189
specified subwidget will be called with these parameters.
190
</DL>
191
</pre><H3>BINDINGS</H3>
192
<P>
193
<UL>
194
[1] <BR>
195
If the <B>-browsecmd</B></I> option is set, the command which it referes
196
to is called whenever a &lt;ButtonPress-1&gt; or a &lt;Motion-1&gt; event occurrs
197
inside the <B>listbox</B></I> subwidget.
198
</UL>
199
<P>
200
<UL>
201
[2] <BR>
202
The command specified by the <B>-command</B></I> option is invoked when a
203
&lt;Double-1&gt; event occurrs inside the <B>listbox</B></I> subwidget.
204
</UL>
205
</pre><H3>BUGS</H3>
206
The capitalization of some of the commands names in Tix 3.x has been
207
changed in Tix 4.0. All commands that ended with <B>box</B></I> have been
208
changed to a capitalized <B>Box</B></I>. Hence, the command
209
<B>tixScrolledListbox</B></I> in Tix 3.x has been changed to
210
<B>tixScrolledListBox</B></I> in Tix 4.0
211
</pre><H3>KEYWORDS</H3>
212
Tix(n)
213
<hr><i>Last modified Sun Jan 19 22:34:36 EST 1997 </i> ---
214
<i>Serial 853731304</i>

powered by: WebSVN 2.1.0

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