X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954b8ae60391d18b87a604e7919c87c0c6ae208b..0a42e3b6ac17519f6fffe8a81cd53f29b72e4ec9:/docs/latex/wx/mltchdlg.tex diff --git a/docs/latex/wx/mltchdlg.tex b/docs/latex/wx/mltchdlg.tex index 709e91dfce..4965fc9eff 100644 --- a/docs/latex/wx/mltchdlg.tex +++ b/docs/latex/wx/mltchdlg.tex @@ -1,10 +1,8 @@ -\section{\class{wxMultipleChoiceDialog}}\label{wxmultiplechoicedialog} +\section{\class{wxMultiChoiceDialog}}\label{wxmultichoicedialog} This class represents a dialog that shows a list of strings, and allows the user to select one or more. -{\bf NOTE:} this class is not yet implemented. - \wxheading{Derived from} \helpref{wxDialog}{wxdialog}\\ @@ -18,8 +16,74 @@ the user to select one or more. \wxheading{See also} -\helpref{wxMultipleChoiceDialog overview}{wxmultiplechoicedialogoverview} +\helpref{wxMultiChoiceDialog overview}{wxmultichoicedialogoverview}, +\helpref{wxSingleChoiceDialog}{wxsinglechoicedialog} \latexignore{\rtfignore{\wxheading{Members}}} +\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. + +\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}.} + +\membersection{wxMultiChoiceDialog::GetSelections}\label{wxmultichoicedialoggetselections} + +\constfunc{wxArrayInt}{GetSelection}{\void} + +Returns array with indexes of selected items. + +\membersection{wxMultiChoiceDialog::SetSelections}\label{wxmultichoicedialogsetselections} + +\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.