1 \section{\class{wxMessageDialog
}}\label{wxmessagedialog
}
3 This class represents a dialog that shows a single or multi-line message,
4 with a choice of OK, Yes, No and Cancel buttons.
6 \wxheading{Derived from
}
8 \helpref{wxDialog
}{wxdialog
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
19 \helpref{wxMessageDialog overview
}{wxmessagedialogoverview
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxMessageDialog::wxMessageDialog
}\label{wxmessagedialogconstr
}
25 \func{}{wxMessageDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message
},
\rtfsp
26 \param{const wxString\&
}{caption = "Message box"
},
\param{long
}{style = wxOK
\pipe wxCANCEL
},
\rtfsp
27 \param{const wxPoint\&
}{pos = wxDefaultPosition
}}
29 Constructor. Use
\helpref{wxMessageDialog::ShowModal
}{wxmessagedialogshowmodal
} to show the dialog.
31 \wxheading{Parameters
}
33 \docparam{parent
}{Parent window.
}
35 \docparam{message
}{Message to show on the dialog.
}
37 \docparam{caption
}{The dialog caption.
}
39 \docparam{style
}{A dialog style (bitlist) containing flags chosen from the following:
43 \twocolitem{{\bf wxOK
}}{Show an OK button.
}
44 \twocolitem{{\bf wxCANCEL
}}{Show a Cancel button.
}
45 \twocolitem{{\bf wxYES
\_NO}}{Show Yes and No buttons.
}
46 \twocolitem{{\bf wxYES
\_DEFAULT}}{Used with
{\bf wxYES
\_NO}, makes
{\bf Yes
} button the default - which is the default behaviour.
}
47 \twocolitem{{\bf wxNO
\_DEFAULT}}{Used with
{\bf wxYES
\_NO}, makes
{\bf No
} button the default.
}
48 \twocolitem{{\bf wxICON
\_EXCLAMATION}}{Shows an exclamation mark icon.
}
49 \twocolitem{{\bf wxICON
\_HAND}}{Shows an error icon.
}
50 \twocolitem{{\bf wxICON
\_ERROR}}{Shows an error icon - the same as wxICON
\_HAND.
}
51 \twocolitem{{\bf wxICON
\_QUESTION}}{Shows a question mark icon.
}
52 \twocolitem{{\bf wxICON
\_INFORMATION}}{Shows an information (i) icon.
}
53 \twocolitem{{\bf wxSTAY
\_ON\_TOP}}{The message box stays on top of all other window, even those of the other applications (Windows only).
}
57 \docparam{pos
}{Dialog position. Not Windows.
}
59 \membersection{wxMessageDialog::
\destruct{wxMessageDialog
}}
61 \func{}{\destruct{wxMessageDialog
}}{\void}
65 \membersection{wxMessageDialog::ShowModal
}\label{wxmessagedialogshowmodal
}
67 \func{int
}{ShowModal
}{\void}
69 Shows the dialog, returning one of wxID
\_OK, wxID
\_CANCEL, wxID
\_YES, wxID
\_NO.