MQDialog class

(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

MQDialog::MQDialog();

MQDialog::MQDialog(int id);

MQDialog::MQDialog(MQWindowBase& parent);

id
A widget id created outside the plug-in
parent
A parent window

It is a constructor.


virtual MQDialog::~MQDialog();

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


MQDialog::DIALOG_RESULT MQDialog::Execute();

Return value
A result value

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

code
A return value

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

parent
A parent window
message
A displaying message
title
A title

It displays a message box.