(new in Rev4.00)
MQTab class manages a tab. Child widgets can be contained in each page or all pages. It inherits a MQWidgetBase class.
Please refer the inherited class about member functions declared in the inherited class.
Class | |
MQTab | Constructor |
~MQTab | Destructor |
Member functions | |
GetTabTitle | Get a tab title |
SetTabTitle | Set a tab title |
GetCurrentPage | Get a current page |
SetCurrentPage | Set a current page |
GetShowTab | Get a tab header visibility |
SetShowTab | Set a tab header visibility |
GetExclusive | Get an exclusive mode |
SetExclusive | Set an exclusive mode |
MQTab::MQTab();
MQTab::MQTab(int id);
It is a constructor.
virtual MQTab::~MQTab();
This method is a destructor. It is defined as a virtual function.
std::wstring MQTab::GetTabTitle(int index);
It returns a title for each tab page.
void MQTab::SetTabTitle(int index, const std::wstring& value);
It specify a title for each tab page.
int MQTab::GetCurrentPage();
It returns a current page of a tab.
void MQTab::SetCurrentPage(int value);
It specifies a current page of a tab.
bool MQTab::GetShowTab();
It returns whether a tab is visible or invisible.
void MQTab::SetShowTab(bool value);
It specifies whether a tab is visible or invisible. A current page can be switched by SetCurrentPage() when a tab is invisible.
bool MQTab::GetExclusive();
It returns whether child widgets are switched in each page (true) or same widgets are always shown in all pages (false).
A default value is 'true'.
void MQTab::SetExclusive(bool value);
It specifies whether an active child widget is switched in each page (true) or same widgets are always shown in all pages (false).
A default value is 'true'.