class MASKING_DLL_DECLSPEC TabPanel
A compound widget for switching between several widgets (or dialogs).
Inheritance:
Public Methods
-
void Attach(Widget* w, const char* title)
- Attaches an exisiting widget (or dialog) to the tab panel.
-
void Detach(Widget* w)
- Removes the passed widget from the panel
-
void OpenTab(int i)
- Switches focus to the specified tab
-
void NextTab()
- Switches focus to the next tab (wraps around)
-
void PreviousTab()
- Switches focus to the previous tab (wraps around)
-
int GetOpenTab()
- Returns index of the currently open tab or -1 if no tab is open
-
int GetTabCount()
- Returns number of tabs
Protected Methods
-
void UpdateSize()
- Updates the size and position of all the widgets in the panel.
Documentation
A compound widget for switching between several widgets (or dialogs).
The currently active widget is displayed in the main panel area.
Widgets can be selected by clicking buttons on top of the main panel.
void UpdateSize()
-
Updates the size and position of all the widgets in the panel.
This function places all the buttons along the top edge of the panel
and resizes all the attached dialogs to fit inside the panel.
void Attach(Widget* w, const char* title)
-
Attaches an exisiting widget (or dialog) to the tab panel.
Widgets are always added to the end of the list. Pass the text
you want to appear on the button that will select this widget.
void Detach(Widget* w)
-
Removes the passed widget from the panel
void OpenTab(int i)
-
Switches focus to the specified tab
void NextTab()
-
Switches focus to the next tab (wraps around)
void PreviousTab()
-
Switches focus to the previous tab (wraps around)
int GetOpenTab()
-
Returns index of the currently open tab or -1 if no tab is open
int GetTabCount()
-
Returns number of tabs
- This class has no child classes.
Alphabetic index Hierarchy of classes
Back to front page
|
page generated with DOC++