MQTab class

(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);

id
A widget ID created outside the plug-in

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);

int
An index of a page
Return value
A title string

It returns a title for each tab page.


void MQTab::SetTabTitle(int index, const std::wstring& value);

index
An index of a page
value
A title string

It specify a title for each tab page.


int MQTab::GetCurrentPage();

Return value
A current page

It returns a current page of a tab.


void MQTab::SetCurrentPage(int value);

value
A current page

It specifies a current page of a tab.


bool MQTab::GetShowTab();

Return value
Whether a tab is visible or invisible

It returns whether a tab is visible or invisible.


void MQTab::SetShowTab(bool value);

value
Whether a tab is visible or invisible

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();

Return value
Exclusive mode

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);

value
Exclusive mode

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