1 \section{\class{wxMultiChoiceDialog
}}\label{wxmultichoicedialog
}
3 This class represents a dialog that shows a list of strings, and allows
4 the user to select one or more.
6 \wxheading{Derived from
}
8 \helpref{wxDialog
}{wxdialog
}\\
9 \helpref{wxTopLevelWindow
}{wxtoplevelwindow
}\\
10 \helpref{wxWindow
}{wxwindow
}\\
11 \helpref{wxEvtHandler
}{wxevthandler
}\\
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
20 \helpref{wxMultiChoiceDialog overview
}{wxmultichoicedialogoverview
},
21 \helpref{wxSingleChoiceDialog
}{wxsinglechoicedialog
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxMultiChoiceDialog::wxMultiChoiceDialog
}\label{wxmultichoicedialogconstr
}
27 \func{}{wxMultiChoiceDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message
},
\rtfsp
28 \param{const wxString\&
}{caption
},
\param{int
}{n
},
\param{const wxString*
}{choices
},
\param{long
}{style = wxCHOICEDLG
\_STYLE},
\rtfsp
29 \param{const wxPoint\&
}{pos = wxDefaultPosition
}}
31 \func{}{wxMultiChoiceDialog
}{\param{wxWindow*
}{parent
},
\param{const wxString\&
}{message
},
\rtfsp
32 \param{const wxString\&
}{caption
},
\param{const wxArrayString\&
}{choices
},
\param{long
}{style = wxCHOICEDLG
\_STYLE},
\rtfsp
33 \param{const wxPoint\&
}{pos = wxDefaultPosition
}}
35 Constructor taking an array of wxString choices.
37 \wxheading{Parameters
}
39 \docparam{parent
}{Parent window.
}
41 \docparam{message
}{Message to show on the dialog.
}
43 \docparam{caption
}{The dialog caption.
}
45 \docparam{n
}{The number of choices.
}
47 \docparam{choices
}{An array of strings, or a string list, containing the choices.
}
49 \docparam{style
}{A dialog style (bitlist) containing flags chosen from standard
50 dialog styles and the following:
54 \twocolitem{{\bf wxOK
}}{Show an OK button.
}
55 \twocolitem{{\bf wxCANCEL
}}{Show a Cancel button.
}
56 \twocolitem{{\bf wxCENTRE
}}{Centre the message. Not Windows.
}
58 The default value is equivalent to
{\bf wxDEFAULT
\_DIALOG\_STYLE \pipe wxRESIZE
\_BORDER \pipe wxOK
\pipe wxCANCEL
\pipe wxCENTRE
}.
61 \docparam{pos
}{Dialog position. Not Windows.
}
65 Use
\helpref{wxMultiChoiceDialog::ShowModal
}{wxmultichoicedialogshowmodal
} to show the dialog.
67 \pythonnote{For Python the two parameters
{\tt n
} and
{\tt choices
} are collapsed
68 into a multi parameter
{\tt choices
} which is expected to be a Python
71 \perlnote{In wxPerl there is just an array reference in place of
{\tt n
}.
}
73 \membersection{wxMultiChoiceDialog::GetSelections
}\label{wxmultichoicedialoggetselections
}
75 \constfunc{wxArrayInt
}{GetSelection
}{\void}
77 Returns array with indexes of selected items.
79 \membersection{wxMultiChoiceDialog::SetSelections
}\label{wxmultichoicedialogsetselections
}
81 \constfunc{void
}{SetSelections
}{\param{const wxArrayInt\&
}{ selections
}}
83 Sets selected items from the array of selected items' indexes.
85 \membersection{wxMultiChoiceDialog::ShowModal
}\label{wxmultichoicedialogshowmodal
}
87 \func{int
}{ShowModal
}{\void}
89 Shows the dialog, returning either wxID
\_OK or wxID
\_CANCEL.