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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [SWindow.n] - 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
'\" 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 tixScrolledWindow tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixScrolledWindow \- Create and manipulate Tix ScrolledWindow widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixScrolledWindow\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
'
50
'----------BEGIN
51
.LP
52
.nf
53
Name:           \fBheight\fR
54
Class:          \fBHeight\fR
55
Switch:         \fB-height\fR
56
.fi
57
.IP
58
Specifies the desired height for the window, in pixels.
59
'----------END
60
'
61
'----------BEGIN
62
.LP
63
.nf
64
Name:           \fBscrollbar\fR
65
Class:          \fBScrollbar\fR
66
Switch:         \fB\-scrollbar\fR
67
.fi
68
.IP
69
Specifies the display policy of the scrollbars. The following
70
values are recognized:
71
.RS
72
'
73
.TP
74
\fBauto\fR \fR?\fI\+x\fR? \fR?\fI\-x\fR? \fR?\fI\+y\fR? \fR?\fI\-y\fR?
75
'
76
When \fB\-scrollbar\fR is set to "\fBauto\fR", the scrollbars are
77
shown only when needed. Additional modifiers can be used to force a
78
scrollbar to be shown or hidden. For example, "\fBauto \-y\fR" means
79
the horizontal scrollbar should be shown when needed but the vertical
80
scrollbar should always be hidden; "\fBauto +x\fR" means the vertical
81
scrollbar should be shown when needed but the horizontal scrollbar
82
should always be shown, and so on.
83
'
84
.TP
85
\fBboth\fR
86
Both scrollbars are shown
87
'
88
.TP
89
\fBnone\fR
90
The scrollbars are never shown.
91
'
92
.TP
93
\fBx\fR
94
Only the horizontal scrollbar is shown;
95
'
96
.TP
97
\fBy\fR
98
Only the vertical scrollbar is shown.
99
'
100
.RE
101
'
102
'----------END
103
'
104
'----------BEGIN
105
.LP
106
.nf
107
Name:           \fBwidth\fR
108
Class:          \fBWidth\fR
109
Switch:         \fB-width\fR
110
.fi
111
.IP
112
Specifies the desired width for the window, in pixels.
113
'----------END
114
'
115
'----------BEGIN
116
.LP
117
.nf
118
Name:           \fBxScrollIncrement\fR
119
Class:          \fBScrollIncrement\fR
120
Switch:         \fB-xscrollincrement\fR
121
.fi
122
.IP
123
Specifies by how much the window should be scrolled in the horizontal
124
direction when the user presses the arrows in the horizontal
125
scrollbar. In Pixels.
126
'----------END
127
'
128
'----------BEGIN
129
.LP
130
.nf
131
Name:           \fByScrollIncrement\fR
132
Class:          \fBScrollIncrement\fR
133
Switch:         \fB-yscrollincrement\fR
134
.fi
135
.IP
136
Specifies by how much the window should be scrolled in the vertical
137
direction when the user presses the arrows in the horizontal
138
scrollbar. In pixels.
139
'----------END
140
'
141
'----------------------------------------------------------------------
142
.SH SUBWIDGETS
143
'
144
'----------BEGIN
145
.LP
146
.nf
147
Name:           \fBhsb\fR
148
Class:          \fBScrollbar\fR
149
.fi
150
.IP
151
The horizontal scrollbar subwidget.
152
'----------END
153
'
154
'
155
'----------BEGIN
156
.LP
157
.nf
158
Name:           \fBwindow\fR
159
Class:          \fBFrame\fR
160
.fi
161
.IP
162
The frame subwidget which is scrolled by the ScrolledWindow widget.
163
'----------END
164
'
165
'----------BEGIN
166
.LP
167
.nf
168
Name:           \fBvsb\fR
169
Class:          \fBScrollbar\fR
170
.fi
171
.IP
172
The vertical scrollbar subwidget.
173
'----------END
174
'
175
.BE
176
'
177
'
178
'----------------------------------------------------------------------
179
.SH DESCRIPTION
180
'
181
.PP
182
'
183
The \fBtixScrolledWindow\fR command creates a new window (given by the
184
\fIpathName\fR argument) and makes it into a ScrolledWindow widget.
185
Additional options, described above, may be specified on the command
186
line or in the option database to configure aspects of the
187
ScrolledWindow widget such as its cursor and relief.
188
'
189
.SH CREATING WIDGETS INSIDE A SCROLLEDWINDOW WIDGET
190
.PP
191
'
192
To create widgets inside a ScrolledWindow widget, one must create the
193
new widgets relative to the \fBwindow\fR subwidget and manage them
194
inside the \fBwindow\fR subwidget. An error will be generated if one
195
tries to create widgets as immediate children of the ScrolledWindow.
196
For example: the following is correct code, which creates new widgets
197
inside the window subwidget:
198
.PP
199
.nf
200
    tixScrolledWindow .w; pack .w
201
    set f [.w subwidget window]
202
    button $f.b \-text hi \-width 40 \-height 40
203
    pack $f.b
204
.fi
205
.PP
206
The following example code is \fIincorrect\fR because it tries to
207
create immediate children of the ScrolledWindow \fB\.w\fR:
208
.PP
209
.nf
210
    tixScrolledWindow .w; pack .w
211
    button .w.b \-text hi \-width 40 \-height 40
212
    pack .w.b
213
.fi
214
'----------------------------------------------------------------------
215
.SH WIDGET COMMANDS
216
.PP
217
'
218
The \fBtixScrolledWindow\fR command creates a new Tcl command whose
219
name is the same as the path name of the ScrolledWindow widget's window.  This
220
command may be used to invoke various
221
operations on the widget. It has the following general form:
222
'
223
.DS C
224
'
225
\fIpathName option \fR?\fIarg arg ...\fR?
226
 
227
.DE
228
'
229
\fIPathName\fR is the name of the command, which is the same as
230
the ScrolledWindow widget's path name.  \fIOption\fR and the \fIarg\fRs
231
determine the exact behavior of the command.  The following
232
commands are possible for ScrolledWindow widgets:
233
'
234
.TP
235
'
236
\fIpathName \fBcget\fR \fIoption\fR
237
'
238
Returns the current value of the configuration option given by
239
\fIoption\fR. \fIOption\fR may have any of the values accepted by the
240
\fBtixScrolledWindow\fR command.
241
'
242
.TP
243
'
244
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
245
'
246
Query or modify the configuration options of the widget.  If
247
no \fIoption\fR is specified, returns a list describing all of the
248
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
249
information on the format of this list).  If \fIoption\fR is specified
250
with no \fIvalue\fR, then the command returns a list describing the
251
one named option (this list will be identical to the corresponding
252
sublist of the value returned if no \fIoption\fR is specified).  If
253
one or more \fIoption\-value\fR pairs are specified, then the command
254
modifies the given widget option(s) to have the given value(s); in
255
this case the command returns an empty string.  \fIOption\fR may have
256
any of the values accepted by the \fBtixScrolledWindow\fR command.
257
'
258
.TP
259
'
260
\fIpathName \fBsubwidget \fI name ?args?\fR
261
'
262
When no additional arguments are given, returns the pathname of the
263
subwidget of the specified name.
264
 
265
When no additional arguments are given, the widget command of the
266
specified subwidget will be called with these parameters.
267
'
268
'
269
'----------------------------------------------------------------------
270
.SH KEYWORDS
271
Tix(n)

powered by: WebSVN 2.1.0

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