The wxPanelTabView is responsible for input and output on a wxPanel.
Derived from
Include files
<wx/tab.h>
See also
Members
wxPanelTabView::wxPanelTabView
wxPanelTabView::~wxPanelTabView
wxPanelTabView::AddTabWindow
wxPanelTabView::ClearWindows
wxPanelTabView::GetCurrentWindow
wxPanelTabView::GetTabWindow
wxPanelTabView::ShowWindowForTab
void wxPanelTabView(wxPanel *panel, long style = wxTAB_STYLE_DRAW_BOX | wxTAB_STYLE_COLOUR_INTERIOR)
Constructor. panel should be a wxTabbedPanel or wxTabbedDialog: the type will be checked by the view at run time.
style may be a bit list of the following:
wxTAB_STYLE_DRAW_BOX | Draw a box around the view area. Most commonly used for dialogs. |
wxTAB_STYLE_COLOUR_INTERIOR | Draw tab backgrounds in the specified colour. Omitting this style will ensure that the tab background matches the dialog background. |
void ~wxPanelTabView()
Destructor. This destructor deletes all the panels associated with the view. If you do not wish this to happen, call ClearWindows with argument FALSE before the view is likely to be destroyed. This will clear the list of windows, without deleting them.
void AddTabPanel(int id, wxWindow *window)
Adds a window to the view. The window is associated with the tab identifier, and will be shown or hidden as the tab is selected or deselected.
void ClearWindows(bool deleteWindows = TRUE)
Removes the child windows from the view. If deleteWindows is TRUE, the windows will be deleted.
wxPanel * GetCurrentWindow()
Returns the child window currently being displayed on the tabbed panel or dialog box.
wxWindow * GetTabWindow(int id)
Returns the window associated with the tab identifier.
void ShowWindowForTab(int id)
Shows the child window corresponding to the tab identifier, and hides the previously shown window.