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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [ListNBK.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 tixListNoteBook tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixListNoteBook - Create and manipulate tixListNoteBook widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixListNoteBook\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.SH "STANDARD OPTIONS"
31
'
32
The ListNoteBook widget supports all the standard options of a frame widget.
33
See the options(n) manual entry for details on the standard options.
34
'
35
'
36
'----------------------------------------------------------------------
37
.SH "WIDGET-SPECIFIC OPTIONS"
38
'
39
'----------BEGIN
40
.LP
41
.nf
42
Name:           \fBdynamicGeometry\fR
43
Class:          \fBDynamicGeometry\fR
44
Switch:         \fB\-dynamicgeometry\fR
45
.fi
46
.IP
47
If set to false, the size of the ListNotebook will match the size of the
48
largest page. If set to true, the size of the ListNotebook will match the
49
size of the current page (therefore, the size may change when the user
50
selects different pages). The default value is false. A setting of true
51
is discouraged.
52
'----------END
53
'
54
'----------BEGIN
55
.LP
56
.nf
57
Name:           \fBipadX\fR
58
Class:          \fBPad\fR
59
Switch:         \fB\-ipadx\fR
60
.fi
61
.IP
62
The amount of internal horizontal paddings around the sides of the
63
page subwidgets.
64
'----------END
65
'
66
'----------BEGIN
67
.LP
68
.nf
69
Name:           \fBipadY\fR
70
Class:          \fBPad\fR
71
Switch:         \fB\-ipady\fR
72
.fi
73
.IP
74
The amount of internal vertical paddings around the sides of the
75
page subwidgets.
76
'----------END
77
'
78
'
79
'----------------------------------------------------------------------
80
.SH SUBWIDGETS
81
.LP
82
.nf
83
Name:           \fBhlist\fR
84
Class:          \fBTixHList\fR
85
.fi
86
.IP
87
The HList widget that displays the names of the pages.
88
'
89
'----------END
90
'
91
.LP
92
In addition, all the page subwidgets created as a result of the
93
\fBadd\fR command can be accessed by the \fBsubwidget\fR command. They
94
are identified by the \fBpageName\fR parameter to the \fBadd\fR
95
command.
96
'
97
'
98
.BE
99
'
100
'----------------------------------------------------------------------
101
.SH DESCRIPTION
102
'
103
.PP
104
'
105
The \fBtixListNoteBook\fR command creates a new window (given by the
106
\fIpathName\fR argument) and makes it into a ListNoteBook widget.
107
Additional options, described above, may be specified on the command
108
line or in the option database to configure aspects of the
109
ListNoteBook widget such as its cursor and relief.
110
 
111
The ListNoteBook widget is very similar to the TixNoteBook widget: it
112
can be used to display many windows in a limited space using a
113
"notebook" metaphore. The notebook is divided into a stack of pages
114
(windows). At one time only one of these pages can be shown. The user
115
can navigate through these pages by choosing the name of the desired
116
page in the \fBhlist\fR subwidget.
117
'
118
'----------------------------------------------------------------------
119
.SH WIDGET COMMANDS
120
.PP
121
'
122
The \fBtixListNoteBook\fR command creates a new Tcl command whose name is
123
the same as the path name of the ListNoteBook widget's window.  This
124
command may be used to invoke various operations on the widget. It has
125
the following general form:
126
'
127
.DS C
128
'
129
\fIpathName option \fR?\fIarg arg ...\fR?
130
.PP
131
.DE
132
'
133
\fIPathName\fR is the name of the command, which is the same as the
134
ListNoteBook widget's path name. \fIOption\fR and the \fIarg\fRs
135
determine the exact behavior of the command. The following commands
136
are possible for ListNoteBook widgets:
137
'
138
'
139
.TP
140
'
141
\fIpathName \fBadd\fI pageName \fR?\fIoption value ...\fR?
142
'
143
Adds a new ListNotebook page subwidget into the ListNoteBook widget.
144
\fIpageName\fR must be the name of an existing entry of the
145
\fBhlist\fR subwidget. You must create the entry before calling the
146
\fBadd\fR command. Please refer to the \fBtixHList(n)\fR manual entry
147
for adding entries in an HList widget.
148
 
149
Additional parameters may be supplied to configure this page
150
subwidget. Possible options are:
151
'
152
.RS
153
.TP
154
\fB\-createcmd\fR
155
'
156
Specifies a TCL command to be called the first time a page is shown on
157
the screen. This option can be used to delay the creation of the
158
contents of a page until necessary. Therefore, it can be used to speed
159
up interface creation process especially when there are a large number
160
of pages in a ListNoteBook widget.
161
'
162
.TP
163
\fB\-raisecmd\fR
164
'
165
Specifies a TCL command to be called whenever this page is raised by
166
the user.
167
'
168
.RE
169
'
170
When successful, this command returns the pathname of the newly
171
created page.
172
.TP
173
\fIpathName \fBcget\fR \fIoption\fR
174
'
175
Returns the current value of the configuration option given by
176
\fIoption\fR.\fIOption\fR may have any of the values accepted by the
177
\fBtixListNoteBook\fR command.
178
'
179
.TP
180
'
181
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
182
'
183
Query or modify the configuration options of the widget.  If no
184
\fIoption\fR is specified, returns a list describing all of the
185
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
186
information on the format of this list). If \fIoption\fR is specified
187
with no \fIvalue\fR, then the command returns a list describing the
188
one named option (this list will be identical to the corresponding
189
sublist of the value returned if no \fIoption\fR is specified).  If
190
one or more \fIoption\-value\fR pairs are specified, then the command
191
modifies the given widget option(s) to have the given value(s); in
192
this case the command returns an empty string.  \fIOption\fR may have
193
any of the values accepted by the \fBtixListNoteBook\fR command.
194
'
195
'
196
.TP
197
\fIpathName \fBdelete\fI pageName\fR?
198
'
199
Deletes the page identified by \fIpageName\fR.
200
'
201
.TP
202
\fIpathName \fBpagecget\fR \fIpageName option\fR
203
'
204
Returns the current value of the configuration option given by
205
\fIoption\fR in the page given by \fIpageName\fR. \fIOption\fR may
206
have any of the values accepted by the \fBadd\fR widget command.
207
'
208
'
209
.TP
210
\fIpathName \fBpageconfigure\fI pageName ?\fIoption\fR? \fI?value ...\fR?
211
'
212
'
213
When no option is given, prints out the values of all options of this
214
page. If \fIoption\fR is specified with no \fIvalue\fR, then the
215
command returns the current value of that option. If one or more
216
\fIoption\-value\fR pairs are specified, then the command modifies the
217
given page's option(s) to have the given value(s); in this case the
218
command returns an empty string. \fIOption\fR may be any of options
219
accepted by the \fBadd\fR widget command.
220
'
221
.TP
222
\fIpathName \fBpages\fR
223
'
224
Returns a list of the names of all the pages.
225
'
226
.TP
227
\fIpathName \fBraise \fIpageName\fR
228
'
229
Raise the page identified by \fIpageName\fR.
230
'
231
.TP
232
\fIpathName \fBraised\fR
233
'
234
Returns the name of the currently raised page.
235
'
236
.TP
237
\fIpathName \fBsubwidget \fI name ?args?\fR
238
'
239
When no options are given, this command returns the pathname of the
240
subwidget of the specified name.
241
 
242
When options are given, the widget command of the specified subwidget
243
will be called with these options.
244
'
245
'
246
'----------------------------------------------------------------------
247
.SH EXAMPLE
248
'
249
.nf
250
 tixListNoteBook .n; pack .n
251
 .n subwidget hlist add page1 -text "Page 1"
252
 .n subwidget hlist add page2 -text "Page 2"
253
 
254
 set page1 [.n add page1]
255
 set page2 [.n add page2]
256
 
257
 button $page1.b -text "On page1"
258
 button $page2.b -text "On page2"
259
 
260
 pack $page1.b
261
 pack $page2.b
262
 
263
 .n raise page2
264
.fi
265
'----------------------------------------------------------------------
266
.SH BINDINGS
267
.PP
268
When the user activates an entry in the \fBhlist\fR subwidget, the
269
page associated with that entry will be raised to the front.  This can
270
be done by using the mouse or keyboard. The \fIhlist\fR subwidget
271
operates with its \fB\-selectmode\fR option set to single. See the
272
event bindings of the HList widget for more details.
273
'
274
'
275
'----------------------------------------------------------------------
276
.SH KEYWORDS
277
Tix(n), tixHList(n)

powered by: WebSVN 2.1.0

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