class MASKING_DLL_DECLSPEC TabPanel

A compound widget for switching between several widgets (or dialogs).

Inheritance:

TabPanel - Dialog - Widget - Rect


Public Methods

[more]void Attach(Widget* w, const char* title)
Attaches an exisiting widget (or dialog) to the tab panel.
[more]void Detach(Widget* w)
Removes the passed widget from the panel
[more]void OpenTab(int i)
Switches focus to the specified tab
[more]void NextTab()
Switches focus to the next tab (wraps around)
[more]void PreviousTab()
Switches focus to the previous tab (wraps around)
[more]int GetOpenTab()
Returns index of the currently open tab or -1 if no tab is open
[more]int GetTabCount()
Returns number of tabs

Protected Methods

[more]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.
ovoid 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.

ovoid 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.

ovoid Detach(Widget* w)
Removes the passed widget from the panel

ovoid OpenTab(int i)
Switches focus to the specified tab

ovoid NextTab()
Switches focus to the next tab (wraps around)

ovoid PreviousTab()
Switches focus to the previous tab (wraps around)

oint GetOpenTab()
Returns index of the currently open tab or -1 if no tab is open

oint GetTabCount()
Returns number of tabs


This class has no child classes.

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++