2004-02-29 08:02:01 -05:00
|
|
|
\section{\class{wxMultiChoiceDialog}}\label{wxmultichoicedialog}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
This class represents a dialog that shows a list of strings, and allows
|
|
|
|
the user to select one or more.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDialog}{wxdialog}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/choicdlg.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2004-06-30 08:32:21 -04:00
|
|
|
\helpref{wxMultiChoiceDialog overview}{wxmultichoicedialogoverview},
|
|
|
|
\helpref{wxSingleChoiceDialog}{wxsinglechoicedialog}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-06-30 08:32:21 -04:00
|
|
|
\membersection{wxMultiChoiceDialog::wxMultiChoiceDialog}\label{wxmultichoicedialogconstr}
|
|
|
|
|
|
|
|
\func{}{wxMultiChoiceDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message},\rtfsp
|
|
|
|
\param{const wxString\& }{caption}, \param{int }{n}, \param{const wxString* }{choices}, \param{long }{style = wxCHOICEDLG\_STYLE},\rtfsp
|
|
|
|
\param{const wxPoint\& }{pos = wxDefaultPosition}}
|
|
|
|
|
|
|
|
\func{}{wxMultiChoiceDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message},\rtfsp
|
|
|
|
\param{const wxString\& }{caption}, \param{const wxArrayString\& }{choices}, \param{long }{style = wxCHOICEDLG\_STYLE},\rtfsp
|
|
|
|
\param{const wxPoint\& }{pos = wxDefaultPosition}}
|
|
|
|
|
|
|
|
Constructor, taking an array of wxString choices and optional client data.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{parent}{Parent window.}
|
|
|
|
|
|
|
|
\docparam{message}{Message to show on the dialog.}
|
|
|
|
|
|
|
|
\docparam{caption}{The dialog caption.}
|
|
|
|
|
|
|
|
\docparam{n}{The number of choices.}
|
|
|
|
|
|
|
|
\docparam{choices}{An array of strings, or a string list, containing the choices.}
|
|
|
|
|
|
|
|
\docparam{style}{A dialog style (bitlist) containing flags chosen from standard
|
|
|
|
dialog styles and the following:
|
|
|
|
|
|
|
|
\twocolwidtha{5cm}
|
|
|
|
\begin{twocollist}
|
|
|
|
\twocolitem{{\bf wxOK}}{Show an OK button.}
|
|
|
|
\twocolitem{{\bf wxCANCEL}}{Show a Cancel button.}
|
|
|
|
\twocolitem{{\bf wxCENTRE}}{Centre the message. Not Windows.}
|
|
|
|
\end{twocollist}
|
|
|
|
The default value is equivalent to {\bf wxDEFAULT\_DIALOG\_STYLE \pipe wxRESIZE\_BORDER \pipe wxOK \pipe wxCANCEL \pipe wxCENTRE}.
|
|
|
|
}
|
|
|
|
|
|
|
|
\docparam{pos}{Dialog position. Not Windows.}
|
|
|
|
|
|
|
|
\wxheading{Remarks}
|
|
|
|
|
|
|
|
Use \helpref{wxMultiChoiceDialog::ShowModal}{wxmultichoicedialogshowmodal} to show the dialog.
|
|
|
|
|
|
|
|
\pythonnote{For Python the two parameters {\tt n} and {\tt choices} are collapsed
|
|
|
|
into a multi parameter {\tt choices} which is expected to be a Python
|
|
|
|
list of strings.}
|
|
|
|
|
|
|
|
\perlnote{In wxPerl there is just an array reference in place of {\tt n}.}
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxMultiChoiceDialog::GetSelections}\label{wxmultichoicedialoggetselections}
|
2004-06-30 08:32:21 -04:00
|
|
|
|
|
|
|
\constfunc{wxArrayInt}{GetSelection}{\void}
|
|
|
|
|
|
|
|
Returns array with indexes of selected items.
|
|
|
|
|
2004-09-27 12:01:38 -04:00
|
|
|
\membersection{wxMultiChoiceDialog::SetSelections}\label{wxmultichoicedialogsetselections}
|
2004-06-30 08:32:21 -04:00
|
|
|
|
|
|
|
\constfunc{void}{SetSelections}{\param{const wxArrayInt\&}{ selections}}
|
|
|
|
|
|
|
|
Sets selected items from the array of selected items' indexes.
|
|
|
|
|
|
|
|
\membersection{wxMultiChoiceDialog::ShowModal}\label{wxmultichoicedialogshowmodal}
|
|
|
|
|
|
|
|
\func{int}{ShowModal}{\void}
|
|
|
|
|
|
|
|
Shows the dialog, returning either wxID\_OK or wxID\_CANCEL.
|
2004-09-26 12:37:44 -04:00
|
|
|
|