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.
|