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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [NoteBook.n] - Blame information for rev 1782

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 tixNoteBook tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixNoteBook - Create and manipulate tixNoteBook widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixNoteBook\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
'
31
'----------------------------------------------------------------------
32
.SH "STANDARD OPTIONS"
33
'
34
The NoteBook widget supports all the standard options of a frame widget.
35
See the options(n) manual entry for details on the standard options.
36
'
37
'
38
'----------------------------------------------------------------------
39
.SH "WIDGET-SPECIFIC OPTIONS"
40
'
41
'----------BEGIN
42
.LP
43
.nf
44
Name:           \fBdynamicGeometry\fR
45
Class:          \fBDynamicGeometry\fR
46
Switch:         \fB\-dynamicgeometry\fR
47
.fi
48
.IP
49
If set to false, the size of the Notebook will match the size of the
50
largest page. If set to true, the size of the Notebook will match the
51
size of the current page (therefore, the size may change when the user
52
selects different pages). The default value is false. A setting of true
53
is discouraged.
54
'----------END
55
'
56
'----------BEGIN
57
.LP
58
.nf
59
Name:           \fBipadX\fR
60
Class:          \fBPad\fR
61
Switch:         \fB\-ipadx\fR
62
.fi
63
.IP
64
The amount of internal horizontal paddings around the sides of the
65
page subwidgets.
66
'----------END
67
'
68
'----------BEGIN
69
.LP
70
.nf
71
Name:           \fBipadY\fR
72
Class:          \fBPad\fR
73
Switch:         \fB\-ipady\fR
74
.fi
75
.IP
76
The amount of internal vertical paddings around the sides of the
77
page subwidgets.
78
'----------END
79
'
80
'
81
'----------------------------------------------------------------------
82
.SH SUBWIDGETS
83
'----------BEGIN
84
.LP
85
.nf
86
Name:           \fBnbframe\fR
87
Class:          \fBtixNoteBookFrame\fR
88
.fi
89
.IP
90
The "note book frame" widget that displays ths tabs of the notebook.
91
Most of the display options of the page tabs are controlled by this
92
subwidget. For example, if you need to choose a different font to
93
display the tab names of the pages, the color of the inactive tabs or
94
the color behind the tabs, you can configure the options of the
95
\fBnbframe\fR subwidget.  See the manual page of
96
\fBtixNoteBookFrame(n)\fR for more details.
97
'
98
'----------END
99
'
100
.LP
101
In addition, all the page subwidgets created as a result of the
102
\fBadd\fR command can be accessed by the \fBsubwidget\fR command. They
103
are identified by the \fBpageName\fR parameter to the \fBadd\fR
104
command.
105
'
106
'
107
.BE
108
'
109
'----------------------------------------------------------------------
110
.SH DESCRIPTION
111
'
112
.PP
113
'
114
The \fBtixNoteBook\fR command creates a new window (given by the
115
\fIpathName\fR argument) and makes it into a NoteBook widget.
116
Additional options, described above, may be specified on the command
117
line or in the option database to configure aspects of the
118
NoteBook widget such as its cursor and relief.
119
 
120
The NoteBook widget can be used to display many windows in a
121
limited space using a "notebook" metaphore. The notebook is divided
122
into a stack of pages (windows). At one time only one of these pages
123
can be shown. The user can navigate through these pages by choosing
124
the visual "tabs" at the top of the NoteBook widget.
125
'
126
'----------------------------------------------------------------------
127
.SH WIDGET COMMANDS
128
.PP
129
'
130
The \fBtixNoteBook\fR command creates a new Tcl command whose name is
131
the same as the path name of the NoteBook widget's window.  This
132
command may be used to invoke various operations on the widget. It has
133
the following general form:
134
'
135
.DS C
136
'
137
\fIpathName option \fR?\fIarg arg ...\fR?
138
.PP
139
.DE
140
'
141
\fIPathName\fR is the name of the command, which is the same as the
142
NoteBook widget's path name. \fIOption\fR and the \fIarg\fRs
143
determine the exact behavior of the command. The following commands
144
are possible for NoteBook widgets:
145
'
146
'
147
.TP
148
'
149
\fIpathName \fBadd\fI pageName \fR?\fIoption value ...\fR?
150
'
151
Adds a new notebook page subwidget into the NoteBook widget.
152
Additional parameters may be supplied to configure this page
153
subwidget. Possible options are:
154
'
155
.RS
156
.TP
157
\fB\-anchor\fR
158
'
159
Specifies how the information in a tab (e.g. text or a bitmap) is to
160
be displayed in the widget. Must be one of the values \fBn\fR,
161
\fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or
162
\fBcenter\fR. For example, nw means display the information such that
163
its top-left corner is at the top-left corner of the widget.
164
'
165
.TP
166
\fB\-bitmap\fR
167
'
168
Specifies a bitmap to display on the tab of this page. The bitmap is
169
displayed only if none of the \fB-label\fR or \fB-image\fR options are
170
specified.
171
'
172
.TP
173
\fB\-createcmd\fR
174
'
175
Specifies a TCL command to be called the first time a page is shown on
176
the screen. This option can be used to delay the creation of the
177
contents of a page until necessary. Therefore, it can be used to speed
178
up interface creation process especially when there are a large number
179
of pages in a NoteBook widget.
180
'
181
.TP
182
\fB\-image\fR
183
'
184
Specifies an image to display on the tab of this page. The image is
185
displayed only if the \fB-label\fR options is not specified.
186
'
187
.TP
188
\fB\-justify\fR
189
'
190
When there are multiple lines of text displayed in a tab, this option
191
determines how the lines line up with each other. Must be one of left,
192
center, or right.  \fBLeft\fR means that the lines' left edges all
193
line up, \fBcenter\fR means that the lines' centers are aligned, and
194
\fBright\fR means that the lines' right edges line up.
195
'
196
.TP
197
\fB\-label\fR
198
'
199
Specifies a text label string to display on the tab of this page subwidget.
200
'
201
.TP
202
\fB\-raisecmd\fR
203
'
204
Specifies a TCL command to be called whenever this page is raised by
205
the user.
206
'
207
.TP
208
\fB\-state\fR
209
'
210
Specifies whether this page can be raised by the user. Must be either
211
\fBnormal\fR or \fBdisabled\fR.
212
'
213
.TP
214
\fB\-underline\fR
215
'
216
Specifies the integer index of a character to underline in the tab.
217
This option is used by the default bindings to implement keyboard
218
traversal for menu buttons and menu entries.  0 corresponds to the
219
first character of the text displayed in the widget, 1 to the next
220
character, and so on.
221
'
222
.TP
223
\fB\-wraplength\fR
224
'
225
This option specifies the maximum line length of the label string on
226
this tab. If the line length of the label string exceeds this length,
227
it is wrapped onto the next line, so that no line is longer than the
228
specified length. The value may be specified in any of the standard
229
forms for screen distances. If this value is less than or equal to 0
230
then no wrapping is done: lines will break only at newline characters
231
in the text.
232
'
233
'
234
.RE
235
'
236
.TP
237
\fIpathName \fBcget\fR \fIoption\fR
238
'
239
Returns the current value of the configuration option given by
240
\fIoption\fR.\fIOption\fR may have any of the values accepted by the
241
\fBtixNoteBook\fR command.
242
'
243
.TP
244
'
245
\fIpathName \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
246
'
247
Query or modify the configuration options of the widget.  If no
248
\fIoption\fR is specified, returns a list describing all of the
249
available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
250
information on the format of this list). If \fIoption\fR is specified
251
with no \fIvalue\fR, then the command returns a list describing the
252
one named option (this list will be identical to the corresponding
253
sublist of the value returned if no \fIoption\fR is specified).  If
254
one or more \fIoption\-value\fR pairs are specified, then the command
255
modifies the given widget option(s) to have the given value(s); in
256
this case the command returns an empty string.  \fIOption\fR may have
257
any of the values accepted by the \fBtixNoteBook\fR command.
258
'
259
'
260
.TP
261
\fIpathName \fBdelete\fI pageName\fR?
262
'
263
Deletes the page identified by \fIpageName\fR.
264
'
265
.TP
266
\fIpathName \fBpagecget\fR \fIpageName option\fR
267
'
268
Returns the current value of the configuration option given by
269
\fIoption\fR in the page given by \fIpageName\fR. \fIOption\fR may
270
have any of the values accepted by the \fBadd\fR widget command.
271
'
272
'
273
.TP
274
\fIpathName \fBpageconfigure\fI pageName ?\fIoption\fR? \fI?value ...\fR?
275
'
276
'
277
When no option is given, prints out the values of all options of this
278
page. If \fIoption\fR is specified with no \fIvalue\fR, then the
279
command returns the current value of that option. If one or more
280
\fIoption\-value\fR pairs are specified, then the command modifies the
281
given page's option(s) to have the given value(s); in this case the
282
command returns an empty string. \fIOption\fR may be any of options
283
accepted by the \fBadd\fR widget command.
284
'
285
.TP
286
\fIpathName \fBpages\fR
287
'
288
Returns a list of the names of all the pages.
289
'
290
.TP
291
\fIpathName \fBraise \fIpageName\fR
292
'
293
Raise the page identified by \fIpageName\fR.
294
'
295
.TP
296
\fIpathName \fBraised\fR
297
'
298
Returns the name of the currently raised page.
299
'
300
.TP
301
\fIpathName \fBsubwidget \fI name ?args?\fR
302
'
303
When no options are given, this command returns the pathname of the
304
subwidget of the specified name.
305
 
306
When options are given, the widget command of the specified subwidget
307
will be called with these options.
308
'
309
'
310
'----------------------------------------------------------------------
311
.SH BINDINGS
312
.PP
313
.IP [1]
314
When the user pressed the left mouse button over a notebook tab, the
315
notebook page associated with that tab will be raised to the top of
316
the stack of pages.
317
'
318
.PP
319
.IP [2]
320
The pages can also be selected using the keyboard. The user can type
321
the \fB\fR key to cycle among the set of pages. When the focus
322
appears on the desired page, the user can type \fB\fR or
323
\fB\fR to select that page. Or, if the user wants to cancel the
324
selection, he/she can type the \fB\fR key.
325
'
326
'
327
'----------------------------------------------------------------------
328
.SH KEYWORDS
329
Tix(n)

powered by: WebSVN 2.1.0

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