Construct the widget.
Add a tab to the notebook. When adding a tab to the notebook the tab gains an id that is equal to the passed widget's id and can be used later to refer to the new tab.
Call to enable keyboard traversal of the tabs.
Get the number of tabs in the notebook.
Get an array of all the current tab id's.
Get the tab index from its id. The id is the widget id that was added as the tab.
Hide a tab from the notbook.
Insert a tab into the notebook at a specified zero based index. When adding a tab to the notebook the tab gains an id that is equal to the passed widget's id and can be used later to refer to the new tab. If the id of the widget passed is already used as a tab id then that existing one will be moved to the new position.
Remove a tab from the notbook.
Select a tab in the notebook.
Set a tab pane's padding.
Set a tab pane's sticky state. Specifies how the slave widget is positioned within the pane area. Sticky state is a string containing zero or more of the characters n, s, e, or w. Each letter refers to a side (north, south, east, or west) that the slave window will "stick" to, as per the grid geometry manager.
Set a tab's image.
Change the position of the tab image in relation to the text.
Set a tab's state.
Set a tab's text.
Underline a character in the tab text. The underlined character is used for mnemonic activation if keyboard traversal is enabled.
Mixin common commands.
Set the height of the widget if the geometry manager allows.
Set the amount of padding within the widget.
Set the width of the widget if the geometry manager allows.
Set the widget's state.
Get the widget's state.
Test if a widget is in a particular state.
Remove the widget's state.
Reset the widget's state to default.
Set the widget's style.
Get the widget's style.
Set if the widget can recieve focus during keyboard traversal.
Get if the widget can recieve focus during keyboard traversal.
Geometry method for loosely placing this widget inside its parent using a web browser model. Widgets flow around each other in the available space.
Geometry method for placing this widget inside its parent using an imaginary grid. Somewhat more direct and intuitive than pack. Choose grid for tabular layouts, and when there's no good reason to choose something else.
Geometry method for placing this widget inside its parent using absolute positioning.
Geometry method for placing this widget inside its parent using relative positioning. In this case the position and size is specified as a floating-point number between 0.0 and 1.0 relative to the height of the parent. 0.5 means the widget will be half as high as the parent and 1.0 means the widget will have the same height as the parent, and so on.
// The notebook must be created first. // See the constructor notes in the documentation. auto noteBook = new NoteBook(); // The pane's widgets are contained within the frame. auto pane = new Frame(noteBook); noteBook.addTab("Text", pane) .pack();
These are injected common commands that can also be used with this widget.
Additional events that can also be bound to using the bind method.
<<NotebookTabChanged>>, <<PrevWindow>>, <Alt-Key>, <Button-1>, <Control-Key-ISO_Left_Tab>, <Control-Key-Tab>, <Control-Shift-Key-Tab>, <Destroy>, <Key-F10>, <Key-Left>, <Key-Right>, <Key-Tab>,
A notebook widget manages a collection of panes and displays a single one at a time. Each pane is associated with a tab, which the user may select to change the currently-displayed pane.