(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);
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);
It add a child window.
A child window always shows in the front of the parent window.。
void MQWindowBase::RemoveChildWindow(MQWindowBase *child);
It separates the child window from this parent window.
The separated window will be displayed on the desktop.
MQFrame *MQWindowBase::CreateHorizontalFrame(MQWidgetBase *parent);
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);
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());
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);
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());
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());
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());
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);
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);
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());
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());
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);
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);
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);
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);
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);
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);
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);
It deletes a widget created by member functions in MQWindowBase class.
std::wstring MQWindowBase::GetTitle();
It returns a string displayed in a title bar.
void MQWindowBase::SetTitle(const std::wstring& text);
It specifies a string displayed in a title bar.