MQWindowBase class

(new in Rev4.00)

MQWindowBase class is a base class for a window and a dialog. It inherits a MQWidgetBase class.

Please refer the inherited class about member functions declared in the inherited class.

Class
MQWindowBase Constructor
~MQWindowBase Destructor
Member functions
AddChildWindow Add a child window
RemoveChildWindow Remove a child window
CreateHorizontalFrame Create a horizontal frame
CreateVerticalFrame Create a vertical frame
CreateGroupBox Create a group box
CreateTab Create a tab
CreateButton Create a button
CreateCheckBox Create a check box
CreateRadioButton Create a radio button
CreateComboBox Create a combo box
CreateListBox Create a list box
CreateLabel Create a label
CreateEdit Create an input area for a text
CreateMemo Create an input area for multiple-line text
CreateSpinBox Create an input area for an integer
CreateDoubleSpinBox Create an input area for a real number
CreateSlider Create a slider
CreateScrollBar Create a scroll bar
CreateColorPanel Create a color panel
DeleteWidget Delete a widget
GetTitle Get a title
SetTitle Set a title

MQWindowBase::MQWindowBase();

MQWindowBase::MQWindowBase(int id);

id
A widget ID created outside the plug-in

It is a constructor.

This class cannot be created directly because 'protected' accessor is specified.


virtual MQWindowBase::~MQWindowBase();

This method is a destructor. It is defined as a virtual function.


void MQWindowBase::AddChildWindow(MQWindowBase *child);

child
A child window

It add a child window.

A child window always shows in the front of the parent window.。


void MQWindowBase::RemoveChildWindow(MQWindowBase *child);

child
A child window

It separates the child window from this parent window.

The separated window will be displayed on the desktop.


MQFrame *MQWindowBase::CreateHorizontalFrame(MQWidgetBase *parent);

parent
A parent widget
Return value
A created frame

It creates a horizontal frame as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQFrame *MQWindowBase::CreateVerticalFrame(MQWidgetBase *parent);

parent
A parent widget
Return value
A created frame

It creates a vertical frame as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQGroupBox *MQWindowBase::CreateGroupBox(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
str
A group box's title
Return value
A created group box

It creates a group box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQTab *MQWindowBase::CreateTab(MQWidgetBase *parent);

parent
A parent widget
Return value
A created tab

It creates a tab as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQButton *MQWindowBase::CreateButton(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
Return value
A created button

It creates a button as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQCheckBox *MQWindowBase::CreateCheckBox(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
Return value
A created check box

It creates a check box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQRadioButton *MQWindowBase::CreateRadioButton(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
Return value
A created radio button

It creates a radio button as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQComboBox *MQWindowBase::CreateComboBox(MQWidgetBase *parent);

parent
A parent widget
Return value
A created combo box

It creates a combo box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQListBox *MQWindowBase::CreateListBox(MQWidgetBase *parent);

parent
A parent widget
Return value
A created list box

It creates a list box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQLabel *MQWindowBase::CreateLabel(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
Return value
A created label

It creates a label as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQEdit *MQWindowBase::CreateEdit(MQWidgetBase *parent, const std::wstring& str = std::wstring());

parent
A parent widget
Return value
A created edit

It creates an edit as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQMemo *MQWindowBase::CreateMemo(MQWidgetBase *parent);

parent
A parent widget
Return value
A created memo

It creates a memo as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQSpinBox *MQWindowBase::CreateSpinBox(MQWidgetBase *parent);

parent
A parent widget
Return value
A created spin box

It creates a spin box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQDoubleSpinBox *MQWindowBase::CreateDoubleSpinBox(MQWidgetBase *parent);

parent
A parent widget
Return value
A created double spin box

It creates a double spin box as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQSlider *MQWindowBase::CreateSlider(MQWidgetBase *parent);

parent
A parent widget
Return value
A created slider

It creates a slider as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQScrollBar *MQWindowBase::CreateScrollBar(MQWidgetBase *parent);

parent
A parent widget
Return value
A created scroll bar

It creates a scroll bar as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


MQColorPanel *MQWindowBase::CreateColorPanel(MQWidgetBase *parent);

parent
A parent widget
Return value
A created color panel

It creates a color panel as a child of the specified parent widget.

The widget created by this function must be deleted by calling not 'delete' operator but DeleteWidget().


void MQWindowBase::DeleteWidget(MQWidgetBase *widget);

widget
A deleting widget

It deletes a widget created by member functions in MQWindowBase class.


std::wstring MQWindowBase::GetTitle();

Return value
A title string

It returns a string displayed in a title bar.


void MQWindowBase::SetTitle(const std::wstring& text);

text
A title string

It specifies a string displayed in a title bar.