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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [PanedWin.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>tixPanedWindow - Create and manipulate tixPanedWindow widgets</TITLE>
5
<Center><H2>tixPanedWindow - Create and manipulate tixPanedWindow widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixPanedWindow<I> <I>pathName ?<I>options</I></B>?
9
</pre><H3>STANDARD OPTIONS</H3>
10
The PanedWindow widget supports all the standard options of a frame
11
widget. See the <B>options(n)</B></I> manual entry for details on the
12
standard options.
13
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
14
<P>
15
<pre><code><code><code>
16
Name:           <B>command</B></I>
17
Class:          <B>Command</B></I>
18
Switch:         <B>-command</B></I>
19
</code></code></code></pre>
20
<UL>
21
Specifies the command to invoke when the panes change their sizes.
22
This command is called with a list of integers that record the new
23
sizes of the panes. The sizes of the panes are listed in the order of
24
</UL>
25
<P>
26
<pre><code><code><code>
27
Name:           <B>dynamicGeometry</B></I>
28
Class:          <B>DynamicGeometry</B></I>
29
Switch:         <B>-dynamicgeometry</B></I>
30
</code></code></code></pre>
31
<UL>
32
If set to true, the size of the PanedWindow will dynamically change
33
if the size of any of its panes changes. Otherwise, the size of the
34
PanedWindow will only increase when size of any of its panes changes
35
and will not decrease. The default value is true.
36
</UL>
37
<P>
38
<pre><code><code><code>
39
Name:           <B>handleActiveBg</B></I>
40
Class:          <B>HandleActiveBg</B></I>
41
Switch:         <B>-handleactivebg</B></I>
42
</code></code></code></pre>
43
<UL>
44
Specifies the active background color of the resize handles. When the
45
mouse cursor enters a resize handle, the resize handle will adopt
46
the active background color.
47
</UL>
48
<P>
49
<pre><code><code><code>
50
Name:           <B>handleBg</B></I>
51
Class:          <B>Background</B></I>
52
Switch:         <B>-handlebg</B></I>
53
</code></code></code></pre>
54
<UL>
55
Specifies the normal background color of the resize handles.
56
</UL>
57
<P>
58
<pre><code><code><code>
59
Name:           <B>height</B></I>
60
Class:          <B>Height</B></I>
61
Switch:         <B>-height</B></I>
62
</code></code></code></pre>
63
<UL>
64
Specifies the desired height for the window.
65
</UL>
66
<P>
67
<pre><code><code><code>
68
Name:           <B>orientation</B></I>
69
Class:          <B>Orientation</B></I>
70
Switch:         <B>-orientation</B></I>
71
Alias:          <B>-orient</B></I>
72
</code></code></code></pre>
73
<UL>
74
Specifies the orientation of the panes. Must be either <B>vertical</B></I>
75
or <B>horizontal</B></I>.
76
</UL>
77
<P>
78
<pre><code><code><code>
79
Name:           <B>paneBorderWidth</B></I>
80
Class:          <B>PaneBorderWidth</B></I>
81
Switch:         <B>-paneborderwidth</B></I>
82
Alias:          <B>-panebd</B></I>
83
</code></code></code></pre>
84
<UL>
85
Specifies the border width of the panes.
86
</UL>
87
<P>
88
<pre><code><code><code>
89
Name:           <B>paneRelief</B></I>
90
Class:          <B>PaneRelief</B></I>
91
Switch:         <B>-panerelief</B></I>
92
</code></code></code></pre>
93
<UL>
94
Specifies the border relief of the panes.
95
</UL>
96
<P>
97
<pre><code><code><code>
98
Name:           <B>separatorActiveBg</B></I>
99
Class:          <B>SeparatorActiveBg</B></I>
100
Switch:         <B>-separatoractivebg</B></I>
101
</code></code></code></pre>
102
<UL>
103
Specifies the active background color of the separators. When the user
104
grabs a resize handle, the separators
105
will adopt the active background color.
106
</UL>
107
<P>
108
<pre><code><code><code>
109
Name:           <B>separatorBg</B></I>
110
Class:          <B>Background</B></I>
111
Switch:         <B>-separatorbg</B></I>
112
</code></code></code></pre>
113
<UL>
114
Specifies the normal background color of the separators.
115
</UL>
116
<P>
117
<pre><code><code><code>
118
Name:           <B>width</B></I>
119
Class:          <B>Width</B></I>
120
Switch:         <B>-width</B></I>
121
</code></code></code></pre>
122
<UL>
123
Specifies the desired width for the window.
124
</UL>
125
</pre><H3>SUBWIDGETS</H3>
126
<P>
127
All the pane subwidgets created as a result of the <B>add</B></I> command
128
can be accessed by the <B>subwidget</B></I> command. They are identified by
129
the <B>paneName</B></I> parameter to the <B>add</B></I> command.
130
</pre><HR>
131
</pre><H3>DESCRIPTION</H3>
132
 
133
<P>
134
The <B>tixPanedWindow</B></I> command creates a new window (given by the
135
<I>pathName</I></B> argument) and makes it into a PanedWindow widget.
136
Additional options, described above, may be specified on the command
137
line or in the option database to configure aspects of the
138
PanedWindow widget such as its cursor and relief.
139
<P>
140
The PanedWindow widget allows the user to interactively manipulate the
141
sizes of several panes. The panes can be arranged either vertically or
142
horizontally. Each individual pane may have upper and lower limits of
143
its size. The user changes the sizes of the panes by dragging the
144
resize handle between two panes.
145
</pre><H3>WIDGET COMMAND</H3>
146
<P>
147
The <B>tixPanedWindow</B></I> command creates a new Tcl command whose name is
148
command may be used to invoke various operations on the widget.  It
149
has the following general form:
150
<pre>
151
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
152
<P>
153
</pre>
154
<I>PathName</I></B> is the name of the command, which is the same as the
155
the exact behavior of the command.  The following commands are
156
possible for PanedWindow widgets:
157
<DL>
158
<DT> <I>pathName <B>add<I> paneName </I></B>?<I>option value ...</I></B>?
159
</I></B>
160
<DD> Adds a new pane subwidget with the name <I>paneName</I></B> into the
161
PanedWindow widget. Additional configuration options can be
162
given to configure the new button subwidget. Three configuration
163
options are supported:
164
</DL>
165
<UL>
166
<DL>
167
<DT> <B>-after</B></I> <I>pane</I></B>
168
</I></B>
169
<DD> Specifies that the new pane should be placed after <I>pane</I></B> in the
170
list of panes in this PanedWindow widget.
171
<B>-at</B></I> <I>integer</I></B>
172
Specifies the position of the new pane in the list of panes in this
173
PanedWindow widget. <B>0</B></I> means the first position, <B>1</B></I> means
174
the second, and so on. In addition, <B>end</B></I> means the end of the
175
list.
176
</DL>
177
<DL>
178
<DT> <B>-before</B></I> <I>pane</I></B>
179
</I></B>
180
<DD> Specifies that the new pane should be placed before <I>pane</I></B> in the
181
list of panes in this PanedWindow widget.
182
</DL>
183
<DL>
184
<DT> <B>-expand</B></I> <I>factor</I></B>
185
</I></B>
186
<DD> Specifies the <B>expand/shrink factor</B></I> of this pane. <I>Factor</I></B>
187
must be a non-negative floating point number. The default value is
188
0.0. The expand/shrink factor is used to calculate how much each pane
189
should grow or shrink when the size of the PanedWindow main window is
190
changed. When the main window expands/shrinks by <I>n</I></B> pixels, then
191
pane <I>i</I></B> will grow/shrink by about <I>n * factor(i) /
192
summation(factors)</B></I>, where <I>factor(i)</I></B> is the expand/shrink
193
factor of pane i and <I>summation(factors)</I></B> is the summation of the
194
expand/shrink factors of all the panes. If <I>summation(factors)</I></B> is
195
0.0, however, only the last visible pane will be grown or shrunk.
196
</DL>
197
<DL>
198
<DT> <B>-min</B></I> <I>integer</I></B>
199
</I></B>
200
<DD> Specifies the minimum size, in pixels, of the new pane; the default is 0.
201
</DL>
202
<DL>
203
<DT> <B>-max</B></I> <I>integer</I></B>
204
</I></B>
205
<DD> Specifies the maximum size, in pixels, of the new pane; the default is 10000.
206
</DL>
207
<DL>
208
<DT> <B>-size</B></I> <I>integer</I></B>
209
</I></B>
210
<DD> Specifies the size, in pixels, of the new pane; if the <B>-size</B></I>
211
option is not given, or set to the empty string, the PanedWindow
212
widget will use the natural size of the pane subwidget.
213
</DL>
214
</UL>
215
<DL>
216
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
217
</I></B>
218
<DD> Returns the current value of the configuration option given by
219
<I>option</I></B>. <I>Option</I></B> may be <B>-min</B></I>, <B>-max</B></I> and/or
220
<B>-size</B></I>, or any option accepted by the Tk frame widget.
221
</DL>
222
<DL>
223
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
224
</I></B>
225
<DD> Query or modify the configuration options of the widget.  If no
226
<I>option</I></B> is specified, returns a list describing all of the
227
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
228
information on the format of this list).  If <I>option</I></B> is specified
229
with no <I>value</I></B>, then the command returns a list describing the
230
one named option (this list will be identical to the corresponding
231
sublist of the value returned if no <I>option</I></B> is specified).  If
232
one or more <I>option-value</I></B> pairs are specified, then the command
233
modifies the given widget option(s) to have the given value(s); in
234
this case the command returns an empty string. <I>Option</I></B> may be any
235
of the non-static options of the PanedWindow widget.
236
</DL>
237
<DL>
238
<DT> <I>pathName <B>delete</B></I> <I>paneName</I></B>
239
</I></B>
240
<DD> Removes the pane given by <I>paneName</I></B> and deletes its contents.
241
</DL>
242
<DL>
243
<DT> <I>pathName <B>forget</B></I> <I>paneName</I></B>
244
</I></B>
245
<DD> Removes the pane given by <I>paneName</I></B> but does not delete its
246
contents. This pane can be later added back to the PanedWindow widget
247
by the <B>manage</B></I> method.
248
</DL>
249
<DL>
250
<DT> <I>pathName <B>manage</B></I> <I>paneName </I></B>?<I>option value ...</I></B>?
251
</I></B>
252
<DD> Adds the pane given by <I>paneName</I></B> back to the PanedWindow widget.
253
<I>PaneName</I></B> must be already forgotten by the <B>forget</B></I>
254
method. Additional <I>option-value</I></B> pairs, same as those accepted by
255
the <B>add</B></I> method, can be given to control the appearance and
256
position of the pane.
257
</DL>
258
<DL>
259
<DT> <I>pathName <B>panecget</B></I> <I>paneName option</I></B>
260
</I></B>
261
<DD> Returns the current value of the configuration option given by
262
<I>option</I></B> in the pane given by <I>paneName</I></B>. <I>Option</I></B> may
263
have any of the values accepted by the <B>add</B></I> widget command.
264
</DL>
265
<DL>
266
<DT> <I>pathName <B>paneconfigure<I> paneName ?<I>option</I></B>? <I>?value ...</I></B>?
267
</I></B>
268
<DD> When no option is given, prints out the values of all options of this
269
pane. If <I>option</I></B> is specified with no <I>value</I></B>, then the
270
command returns the current value of that option. If one or more
271
<I>option-value</I></B> pairs are specified, then the command modifies the
272
command returns an empty string. <I>Option</I></B> may be <B>-min</B></I>,
273
<B>-max</B></I> and/or <B>-size</B></I>, or any option accepted by the Tk
274
frame widget. The sizes of the panes may be changed as a result of
275
calling the <B>paneconfigure</B></I> command.
276
</DL>
277
<DL>
278
<DT> <I>pathName <B>panes</B></I>
279
</I></B>
280
<DD> Returns a list of the names of all panes.
281
</DL>
282
<DL>
283
<DT> <I>pathName <B>setsize</B></I> <I>paneName newSize</I></B> ?<I>direction</I></B>?
284
</I></B>
285
<DD> Sets the size of the pane specified by <I>paneName</I></B> to
286
<I>newSize</I></B>. The <I>direction</I></B> parameter specifies in which
287
direction the pane should grow/shrink. Possible values are <B>next</B></I>:
288
the pane will grow or shrink by moving the boundary between itself and
289
the pane to its right or bottom; <B>prev</B></I>: the pane will grow or
290
shrink by moving the boundary between itself and the pane to its left
291
or top.
292
</DL>
293
<DL>
294
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
295
</I></B>
296
<DD> When no options are given, returns the pathname of the subwidget of
297
the specified name.
298
 
299
When options are given, the widget command of the specified subwidget will
300
be called with these options.
301
</DL>
302
</pre><H3>BINDINGS</H3>
303
<B>-max</B></I> and <B>-size</B></I> options of the panes.
304
</pre><H3>KEYWORDS</H3>
305
TIX, Container Widget
306
<hr><i>Last modified Sun Jan 19 22:34:35 EST 1997 </i> ---
307
<i>Serial 853731303</i>

powered by: WebSVN 2.1.0

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