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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [NoteBook.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>tixNoteBook - Create and manipulate tixNoteBook widgets</TITLE>
5
<Center><H2>tixNoteBook - Create and manipulate tixNoteBook widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixNoteBook<I> <I>pathName ?<I>options</I></B>?
9
</pre><H3>STANDARD OPTIONS</H3>
10
The NoteBook widget supports all the standard options of a frame widget.
11
See the options(n) manual entry for details on the standard options.
12
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
13
<P>
14
<pre><code><code><code>
15
Name:           <B>dynamicGeometry</B></I>
16
Class:          <B>DynamicGeometry</B></I>
17
Switch:         <B>-dynamicgeometry</B></I>
18
</code></code></code></pre>
19
<UL>
20
If set to false, the size of the Notebook will match the size of the
21
largest page. If set to true, the size of the Notebook will match the
22
size of the current page (therefore, the size may change when the user
23
selects different pages). The default value is false. A setting of true
24
is discouraged.
25
</UL>
26
<P>
27
<pre><code><code><code>
28
Name:           <B>ipadX</B></I>
29
Class:          <B>Pad</B></I>
30
Switch:         <B>-ipadx</B></I>
31
</code></code></code></pre>
32
<UL>
33
The amount of internal horizontal paddings around the sides of the
34
page subwidgets.
35
</UL>
36
<P>
37
<pre><code><code><code>
38
Name:           <B>ipadY</B></I>
39
Class:          <B>Pad</B></I>
40
Switch:         <B>-ipady</B></I>
41
</code></code></code></pre>
42
<UL>
43
The amount of internal vertical paddings around the sides of the
44
page subwidgets.
45
</UL>
46
</pre><H3>SUBWIDGETS</H3>
47
<P>
48
<pre><code><code><code>
49
Name:           <B>nbframe</B></I>
50
Class:          <B>tixNoteBookFrame</B></I>
51
</code></code></code></pre>
52
<UL>
53
The "note book frame" widget that displays ths tabs of the notebook.
54
Most of the display options of the page tabs are controlled by this
55
subwidget. For example, if you need to choose a different font to
56
display the tab names of the pages, the color of the inactive tabs or
57
the color behind the tabs, you can configure the options of the
58
<B>nbframe</B></I> subwidget.  See the manual page of
59
<B>tixNoteBookFrame(n)</B></I> for more details.
60
</UL>
61
<P>
62
In addition, all the page subwidgets created as a result of the
63
<B>add</B></I> command can be accessed by the <B>subwidget</B></I> command. They
64
are identified by the <B>pageName</B></I> parameter to the <B>add</B></I>
65
command.
66
</pre><HR>
67
</pre><H3>DESCRIPTION</H3>
68
<P>
69
The <B>tixNoteBook</B></I> command creates a new window (given by the
70
<I>pathName</I></B> argument) and makes it into a NoteBook widget.
71
Additional options, described above, may be specified on the command
72
line or in the option database to configure aspects of the
73
NoteBook widget such as its cursor and relief.
74
 
75
The NoteBook widget can be used to display many windows in a
76
limited space using a "notebook" metaphore. The notebook is divided
77
into a stack of pages (windows). At one time only one of these pages
78
can be shown. The user can navigate through these pages by choosing
79
the visual "tabs" at the top of the NoteBook widget.
80
</pre><H3>WIDGET COMMANDS</H3>
81
<P>
82
The <B>tixNoteBook</B></I> command creates a new Tcl command whose name is
83
command may be used to invoke various operations on the widget. It has
84
the following general form:
85
<pre>
86
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
87
<P>
88
</pre>
89
<I>PathName</I></B> is the name of the command, which is the same as the
90
determine the exact behavior of the command. The following commands
91
are possible for NoteBook widgets:
92
<DL>
93
<DT> <I>pathName <B>add<I> pageName </I></B>?<I>option value ...</I></B>?
94
</I></B>
95
<DD> Adds a new notebook page subwidget into the NoteBook widget.
96
Additional parameters may be supplied to configure this page
97
subwidget. Possible options are:
98
</DL>
99
<UL>
100
<DL>
101
<DT> <B>-anchor</B></I>
102
</I></B>
103
<DD> Specifies how the information in a tab (e.g. text or a bitmap) is to
104
be displayed in the widget. Must be one of the values <B>n</B></I>,
105
<B>ne</B></I>, <B>e</B></I>, <B>se</B></I>, <B>s</B></I>, <B>sw</B></I>, <B>w</B></I>, <B>nw</B></I>, or
106
<B>center</B></I>. For example, nw means display the information such that
107
its top-left corner is at the top-left corner of the widget.
108
</DL>
109
<DL>
110
<DT> <B>-bitmap</B></I>
111
</I></B>
112
<DD> Specifies a bitmap to display on the tab of this page. The bitmap is
113
displayed only if none of the <B>-label</B></I> or <B>-image</B></I> options are
114
specified.
115
</DL>
116
<DL>
117
<DT> <B>-createcmd</B></I>
118
</I></B>
119
<DD> Specifies a TCL command to be called the first time a page is shown on
120
the screen. This option can be used to delay the creation of the
121
contents of a page until necessary. Therefore, it can be used to speed
122
up interface creation process especially when there are a large number
123
of pages in a NoteBook widget.
124
</DL>
125
<DL>
126
<DT> <B>-image</B></I>
127
</I></B>
128
<DD> Specifies an image to display on the tab of this page. The image is
129
displayed only if the <B>-label</B></I> options is not specified.
130
</DL>
131
<DL>
132
<DT> <B>-justify</B></I>
133
</I></B>
134
<DD> When there are multiple lines of text displayed in a tab, this option
135
determines how the lines line up with each other. Must be one of left,
136
</DL>
137
<DL>
138
<DT> <B>-label</B></I>
139
</I></B>
140
<DD> Specifies a text label string to display on the tab of this page subwidget.
141
</DL>
142
<DL>
143
<DT> <B>-raisecmd</B></I>
144
</I></B>
145
<DD> Specifies a TCL command to be called whenever this page is raised by
146
the user.
147
</DL>
148
<DL>
149
<DT> <B>-state</B></I>
150
</I></B>
151
<DD> Specifies whether this page can be raised by the user. Must be either
152
<B>normal</B></I> or <B>disabled</B></I>.
153
</DL>
154
<DL>
155
<DT> <B>-underline</B></I>
156
</I></B>
157
<DD> Specifies the integer index of a character to underline in the tab.
158
This option is used by the default bindings to implement keyboard
159
traversal for menu buttons and menu entries.  0 corresponds to the
160
first character of the text displayed in the widget, 1 to the next
161
character, and so on.
162
</DL>
163
<DL>
164
<DT> <B>-wraplength</B></I>
165
</I></B>
166
<DD> This option specifies the maximum line length of the label string on
167
this tab. If the line length of the label string exceeds this length,
168
it is wrapped onto the next line, so that no line is longer than the
169
specified length. The value may be specified in any of the standard
170
forms for screen distances. If this value is less than or equal to 0
171
then no wrapping is done: lines will break only at newline characters
172
in the text.
173
</DL>
174
</UL>
175
<DL>
176
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
177
</I></B>
178
<DD> Returns the current value of the configuration option given by
179
<I>option</I></B>.<I>Option</I></B> may have any of the values accepted by the
180
<B>tixNoteBook</B></I> command.
181
</DL>
182
<DL>
183
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
184
</I></B>
185
<DD> Query or modify the configuration options of the widget.  If no
186
<I>option</I></B> is specified, returns a list describing all of the
187
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
188
information on the format of this list). If <I>option</I></B> is specified
189
with no <I>value</I></B>, then the command returns a list describing the
190
one named option (this list will be identical to the corresponding
191
sublist of the value returned if no <I>option</I></B> is specified).  If
192
one or more <I>option-value</I></B> pairs are specified, then the command
193
modifies the given widget option(s) to have the given value(s); in
194
this case the command returns an empty string.  <I>Option</I></B> may have
195
any of the values accepted by the <B>tixNoteBook</B></I> command.
196
</DL>
197
<DL>
198
<DT> <I>pathName <B>delete<I> pageName</I></B>?
199
</I></B>
200
<DD> Deletes the page identified by <I>pageName</I></B>.
201
</DL>
202
<DL>
203
<DT> <I>pathName <B>pagecget</B></I> <I>pageName option</I></B>
204
</I></B>
205
<DD> Returns the current value of the configuration option given by
206
<I>option</I></B> in the page given by <I>pageName</I></B>. <I>Option</I></B> may
207
have any of the values accepted by the <B>add</B></I> widget command.
208
</DL>
209
<DL>
210
<DT> <I>pathName <B>pageconfigure<I> pageName ?<I>option</I></B>? <I>?value ...</I></B>?
211
</I></B>
212
<DD> When no option is given, prints out the values of all options of this
213
page. If <I>option</I></B> is specified with no <I>value</I></B>, then the
214
command returns the current value of that option. If one or more
215
<I>option-value</I></B> pairs are specified, then the command modifies the
216
command returns an empty string. <I>Option</I></B> may be any of options
217
accepted by the <B>add</B></I> widget command.
218
</DL>
219
<DL>
220
<DT> <I>pathName <B>pages</B></I>
221
</I></B>
222
<DD> Returns a list of the names of all the pages.
223
</DL>
224
<DL>
225
<DT> <I>pathName <B>raise <I>pageName</I></B>
226
</I></B>
227
<DD> Raise the page identified by <I>pageName</I></B>.
228
</DL>
229
<DL>
230
<DT> <I>pathName <B>raised</B></I>
231
</I></B>
232
<DD> Returns the name of the currently raised page.
233
</DL>
234
<DL>
235
<DT> <I>pathName <B>subwidget <I> name ?args?</I></B>
236
</I></B>
237
<DD> When no options are given, this command returns the pathname of the
238
subwidget of the specified name.
239
 
240
When options are given, the widget command of the specified subwidget
241
will be called with these options.
242
</DL>
243
</pre><H3>BINDINGS</H3>
244
<P>
245
<UL>
246
[1] <BR>
247
When the user pressed the left mouse button over a notebook tab, the
248
notebook page associated with that tab will be raised to the top of
249
the stack of pages.
250
</UL>
251
<P>
252
<UL>
253
[2] <BR>
254
The pages can also be selected using the keyboard. The user can type
255
the <B>&lt;Tab&gt;</B></I> key to cycle among the set of pages. When the focus
256
appears on the desired page, the user can type <B>&lt;Return&gt;</B></I> or
257
<B>&lt;space&gt;</B></I> to select that page. Or, if the user wants to cancel the
258
selection, he/she can type the <B>&lt;Escape&gt;</B></I> key.
259
</UL>
260
</pre><H3>KEYWORDS</H3>
261
Tix(n)
262
<hr><i>Last modified Sun Jan 19 22:34:33 EST 1997 </i> ---
263
<i>Serial 853731303</i>

powered by: WebSVN 2.1.0

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