(new in Rev4.00)
MQDialog class manages a dialog. It inherits MQWidgetBase - MQWindowBase class.
Please refer the inherited class about member functions declared in the inherited class.
Class | |
MQDialog | Constructor |
~MQDialog | Destructor |
Member functions | |
Execute | Show a dialog |
Close | Close a dialog |
Static functions | |
MessageWarningBox | Show a message box for a warning |
MessageInformationBox | Show a message box for an information |
MessageYesNoBox | Show a message box with yes/no |
MessageYesNoCancelBox | Show a message box with yes/no/cancel |
MessageOkCancelBox | Show a message box with ok/cancel |
MessageBox | Show a message box with arbitrary buttons |
MQDialog::MQDialog();
MQDialog::MQDialog(int id);
MQDialog::MQDialog(MQWindowBase& parent);
It is a constructor.
virtual MQDialog::~MQDialog();
This method is a destructor. It is defined as a virtual function.
MQDialog::DIALOG_RESULT MQDialog::Execute();
It shows a dialog.
A procedure does not return until closing the dialog. A result value is returned when a dialog is closed.
void MQDialog::Close(DIALOG_RESULT code = DIALOG_NONE);
It closes a dialog.
The specified value becomes a return value for Execute().
MQDialog::DIALOG_RESULT MQDialog::MessageWarningBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title);
MQDialog::DIALOG_RESULT MQDialog::MessageInformationBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title);
MQDialog::DIALOG_RESULT MQDialog::MessageYesNoBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title);
MQDialog::DIALOG_RESULT MQDialog::MessageYesNoCancelBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title);
MQDialog::DIALOG_RESULT MQDialog::MessageOkCancelBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title);
It displays a message box.
MQDialog::DIALOG_RESULT MQDialog::MessageBox(MQWindowBase& parent, const std::wstring& message, const std::wstring& title, const std::vector<DIALOG_RESULT>& buttons, int default_index = -1);
(new in Rev4.64)
It displays a message box with arbitrary buttons.