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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [SListBox.n] - Blame information for rev 1765

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 tixScrolledListBox tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixScrolledListBox \- Create and manipulate Tix ScrolledListBox widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixScrolledListBox\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'
30
'----------------------------------------------------------------------
31
.SH "STANDARD OPTIONS"
32
.LP
33
.nf
34
.ta 4c 8c 12c
35
\fB
36
'
37
anchor  background      cursor
38
relief  borderWidth
39
'
40
\fR
41
.ta 4c
42
.fi
43
.LP
44
See the \fBoptions(n)\fR manual entry for details on the standard options.
45
'
46
'
47
'----------------------------------------------------------------------
48
.SH "WIDGET-SPECIFIC OPTIONS"
49
'----------BEGIN
50
.LP
51
.nf
52
Name:           \fBanchor\fR
53
Class:          \fBAnchor\fR
54
Switch:         \fB\-anchor\fR
55
.fi
56
.IP
57
Specifies the alignment of the items inside the listbox subwidget.
58
Only the values \fBw\fR and \fBe\fR are allowed. When set to \fBw\fR,
59
the listbox is automatically aligned to the beginning of the items.
60
When set to \fBe\fR, the listbox is automatically aligned to the end
61
of the items.  Automatically alignment only happens when the
62
ScrolledListBox widget changes its size.
63
'----------END
64
'
65
'----------BEGIN
66
.LP
67
.nf
68
Name:           \fBbrowsecmd\fR
69
Class:          \fBBrowseCmd\fR
70
Switch:         \fB\-browsecmd\fR
71
.fi
72
.IP
73
Specifies the command to be called when the user browses the elements
74
inside the \fBlistbox\fR subwidget (see the BINDINGS section below).
75
'----------END
76
'
77
'----------BEGIN
78
.LP
79
.nf
80
Name:           \fBcommand\fR
81
Class:          \fBCommand\fR
82
Switch:         \fB\-command\fR
83
.fi
84
.IP
85
Specifies the command to be called when the user invokes the \fBlistbox\fR
86
subwidget (see the BINDINGS section below).
87
'----------END
88
'
89
'----------BEGIN
90
.LP
91
.nf
92
Name:           \fBheight\fR
93
Class:          \fBHeight\fR
94
Switch:         \fB\-height\fR
95
.fi
96
.IP
97
Specifies the desired height for the window, in pixels.
98
'----------END
99
'
100
'----------BEGIN
101
.LP
102
.nf
103
Name:           \fBscrollbar\fR
104
Class:          \fBScrollbar\fR
105
Switch:         \fB\-scrollbar\fR
106
.fi
107
.IP
108
Specifies the display policy of the scrollbars. The following
109
values are recognized:
110
.RS
111
'
112
.TP
113
\fBauto\fR \fR?\fI\+x\fR? \fR?\fI\-x\fR? \fR?\fI\+y\fR? \fR?\fI\-y\fR?
114
'
115
When \fB\-scrollbar\fR is set to "\fBauto\fR", the scrollbars are
116
shown only when needed. Additional modifiers can be used to force a
117
scrollbar to be shown or hidden. For example, "\fBauto \-y\fR" means
118
the horizontal scrollbar should be shown when needed but the vertical
119
scrollbar should always be hidden; "\fBauto +x\fR" means the vertical
120
scrollbar should be shown when needed but the horizontal scrollbar
121
should always be shown, and so on.
122
'
123
.TP
124
\fBboth\fR
125
Both scrollbars are shown
126
'
127
.TP
128
\fBnone\fR
129
The scrollbars are never shown.
130
'
131
.TP
132
\fBx\fR
133
Only the horizontal scrollbar is shown;
134
'
135
.TP
136
\fBy\fR
137
Only the vertical scrollbar is shown.
138
'
139
.RE
140
'
141
'----------END
142
'
143
'----------BEGIN
144
.LP
145
.nf
146
Name:           \fBwidth\fR
147
Class:          \fBWidth\fR
148
Switch:         \fB-width\fR
149
.fi
150
.IP
151
Specifies the desired width for the window, in pixels.
152
'----------END
153
'
154
'----------------------------------------------------------------------
155
.SH SUBWIDGETS
156
'
157
'----------BEGIN
158
.LP
159
.nf
160
Name:           \fBhsb\fR
161
Class:          \fBScrollbar\fR
162
.fi
163
.IP
164
The horizontal scrollbar subwidget.
165
'----------END
166
'
167
'
168
'----------BEGIN
169
.LP
170
.nf
171
Name:           \fBlistbox\fR
172
Class:          \fBListbox\fR
173
.fi
174
.IP
175
The listbox subwidget inside the ScrolledListBox widget.
176
'----------END
177
'
178
'----------BEGIN
179
.LP
180
.nf
181
Name:           \fBvsb\fR
182
Class:          \fBScrollbar\fR
183
.fi
184
.IP
185
The vertical scrollbar subwidget.
186
'----------END
187
'
188
.BE
189
'
190
'
191
'----------------------------------------------------------------------
192
.SH DESCRIPTION
193
'
194
.PP
195
'
196
The \fBtixScrolledListBox\fR command creates a new window (given by the
197
\fIpathName\fR argument) and makes it into a ScrolledListBox widget.
198
Additional options, described above, may be specified on the command
199
line or in the option database to configure aspects of the
200
ScrolledListBox widget such as its cursor and relief.
201
'
202
'----------------------------------------------------------------------
203
.SH WIDGET COMMANDS
204
.PP
205
'
206
The \fBtixScrolledListBox\fR command creates a new Tcl command whose
207
name is the same as the path name of the ScrolledListBox widget's
208
window. This command may be used to invoke various operations on the
209
widget. It has the following general form:
210
'
211
.DS C
212
'
213
\fIpathName option \fR?\fIarg arg ...\fR?
214
 
215
.DE
216
'
217
\fIPathName\fR is the name of the command, which is the same as the
218
ScrolledListBox widget's path name. \fIOption\fR and the \fIarg\fRs
219
determine the exact behavior of the command.  The following commands
220
are possible for ScrolledListBox widgets:
221
'
222
.TP
223
'
224
\fIpathName \fBcget\fR \fIoption\fR
225
'
226
Returns the current value of the configuration option given by
227
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
228
\fBtixScrolledListBox\fR command.
229
'
230
.TP
231
'
232
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
233
'
234
Query or modify the configuration options of the widget.  If
235
no \fIoption\fR is specified, returns a list describing all of the
236
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
237
information on the format of this list).  If \fIoption\fR is specified
238
with no \fIvalue\fR, then the command returns a list describing the
239
one named option (this list will be identical to the corresponding
240
sublist of the value returned if no \fIoption\fR is specified).  If
241
one or more \fIoption\-value\fR pairs are specified, then the command
242
modifies the given widget option(s) to have the given value(s); in
243
this case the command returns an empty string.  \fIOption\fR may have
244
any of the values accepted by the \fBtixScrolledListBox\fR command.
245
'
246
.TP
247
'
248
\fIpathName \fBsubwidget \fI name ?args?\fR
249
'
250
When no additional arguments are given, returns the pathname of the
251
subwidget of the specified name.
252
 
253
When no additional arguments are given, the widget command of the
254
specified subwidget will be called with these parameters.
255
'
256
'----------------------------------------------------------------------
257
'
258
.SH BINDINGS
259
.PP
260
.IP [1]
261
'
262
If the \fB\-browsecmd\fR option is set, the command which it referes
263
to is called whenever a  or a  event occurrs
264
inside the \fBlistbox\fR subwidget.
265
'
266
.PP
267
.IP [2]
268
'
269
The command specified by the \fB\-command\fR option is invoked when a
270
 event occurrs inside the \fBlistbox\fR subwidget.
271
'
272
'----------------------------------------------------------------------
273
'
274
.SH BUGS
275
'
276
The capitalization of some of the commands names in Tix 3.x has been
277
changed in Tix 4.0. All commands that ended with \fBbox\fR have been
278
changed to a capitalized \fBBox\fR. Hence, the command
279
\fBtixScrolledListbox\fR in Tix 3.x has been changed to
280
\fBtixScrolledListBox\fR in Tix 4.0
281
'
282
'
283
'----------------------------------------------------------------------
284
.SH KEYWORDS
285
Tix(n)

powered by: WebSVN 2.1.0

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