- NAME
- NoteBook
- Notebook manager widget
- CREATION
- NoteBook pathName ?option value...?
- STANDARD OPTIONS
- OPTIONS from ArrowButton
-activebackground |
-activeforeground |
-background or -bg |
-borderwidth or -bd |
-disabledforeground |
-foreground or -fg |
-repeatdelay |
-repeatinterval |
- WIDGET-SPECIFIC OPTIONS
- WIDGET COMMAND
- pathName cget
option
- pathName compute_size
- pathName configure
?option? ?value option value ...?
- pathName delete
page
- pathName getframe
page
- pathName index
page
- pathName insert
index
page
?option value...?
- pathName itemcget
page
option
- pathName itemconfigure
page
?option? ?value option value ...?
- pathName page
first
?last?
- pathName pages
- pathName raise
?page?
- pathName see
page
DESCRIPTION
NoteBook widget manage a set of pages and displays one of them.
Some commands take page as argument indicating on which
page it works. page is the pathname of a page returned by
NoteBook::insert or NoteBook::pages.
WIDGET-SPECIFIC OPTIONS
- -height
-
Specifies the desired height for the pages. If this option is equal to zero (the default)
then the window will not request any size at all.
In this case, user may want to call NoteBook::compute_size to make NoteBook larger
enough to contains the largest page.
- -homogeneous
-
Specifies wether or not the label of the pages must have the same width.
- -side (read-only)
-
Specifies the side where to place the label of the pages. Must be one
of top, bottom, left or right.
Only top is implemented for the moment.
- -width
-
Specifies the desired width for the pages. If this option is equal to zero (the default)
then the window will not request any size at all.
In this case, user may want to call NoteBook::compute_size to make NoteBook larger
enough to contains the largest page.
WIDGET COMMAND
- pathName cget
option
-
Returns the current value of the configuration option given by option.
Option may have any of the values accepted by the create command.
- pathName compute_size
-
This command can be called to make the NoteBook larger enough to contains the largest page.
Note that if all pages use -createcmd, they will have no requested size.
- pathName configure
?option? ?value option value ...?
-
Modify the configuration options of the widget.
Option may have any of the values accepted by the create command,
except those who are read-only.
- pathName delete
page
-
Deletes the page page.
- pathName getframe
page
-
Description text
- pathName index
page
-
Return the numerical index corresponding to index.
- pathName insert
index
page
?option value...?
-
Insert a new page at position index in the pages list. index must be
numeric or end. The pathname of the new page is returned.
- -createcmd
-
Specifies a command to be called the first time the page is raised.
The pathname of the page is appended to the command.
- -image
-
Specifies an image to display for the page at the left of the label
(not yet implemented).
- -raisecmd
-
Specifies a command to be called each time the page is raised.
The pathname of the page is appended to the command.
- -state
-
Specifies the state of the page. Must be normal or disabled.
- -text
-
Specifies a label to display for the page.
- pathName itemcget
page
option
-
Returns the current value of a configuration option for the item given by index.
Option may have any of the values accepted by the item creation command.
- pathName itemconfigure
page
?option? ?value option value ...?
-
Modify the configuration options of the item given by index. Options may have
any of the values accepted by the item creation command,
except those who are read-only.
- pathName page
first
?last?
-
Description text
- pathName pages
-
Returns the list of pathname of all pages.
- pathName raise
?page?
-
Raise the page page, or return the raised page if page is omitted.
- pathName see
page
-
Scrolls labels to make the label of the page page visible.