wxMessageDialog
This class represents a dialog that shows a single or multi-line message,
with a choice of OK, Yes, No and Cancel buttons.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/msgdlg.h>
See also
wxMessageDialog overview
Members
wxMessageDialog::wxMessageDialog
wxMessageDialog::~wxMessageDialog
wxMessageDialog::ShowModal
wxMessageDialog::wxMessageDialog
wxMessageDialog(wxWindow* parent, const wxString& message,
const wxString& caption = "Message box", long style = wxOK | wxCANCEL,
const wxPoint& pos = wxDefaultPosition)
Constructor. Use wxMessageDialog::ShowModal to show the dialog.
Parameters
parent
message
Message to show on the dialog.
caption
style
A dialog style (bitlist) containing flags chosen from the following:
wxOK
|
Show an OK button.
|
wxCANCEL
|
Show a Cancel button.
|
wxYES_NO
|
Show Yes and No buttons.
|
wxYES_DEFAULT
|
Used with wxYES_NO, makes Yes button the default - which is the default behaviour.
|
wxNO_DEFAULT
|
Used with wxYES_NO, makes No button the default.
|
wxICON_EXCLAMATION
|
Shows an exclamation mark icon.
|
wxICON_HAND
|
Shows an error icon.
|
wxICON_ERROR
|
Shows an error icon - the same as wxICON_HAND.
|
wxICON_QUESTION
|
Shows a question mark icon.
|
wxICON_INFORMATION
|
Shows an information (i) icon.
|
wxSTAY_ON_TOP
|
The message box stays on top of all other window, even those of the other applications (Windows only).
|
pos
Dialog position. Not Windows.
wxMessageDialog::~wxMessageDialog
~wxMessageDialog()
Destructor.
wxMessageDialog::ShowModal
int ShowModal()
Shows the dialog, returning one of wxID_OK, wxID_CANCEL, wxID_YES, wxID_NO.
|