This class represents a dialog that shows a list of strings, and allows the user to select one or more.
Derived from
wxDialog
wxWindow
wxEvtHandler
wxObject
Include files
<wx/choicdlg.h>
See also
wxMultiChoiceDialog overview, wxSingleChoiceDialog
Constructor taking an array of wxString choices.
Parameters
wxOK | Show an OK button. |
wxCANCEL | Show a Cancel button. |
wxCENTRE | Centre the message. Not Windows. |
Remarks
Use wxMultiChoiceDialog::ShowModal to show the dialog.
wxPython での注意点: For Python the two parameters n and choices are collapsed into a multi parameter choices which is expected to be a Python list of strings.
wxPerl での注意点: In wxPerl there is just an array reference in place of n.
wxArrayInt GetSelection(void) const
Returns array with indexes of selected items.
void SetSelections(const wxArrayInt& selections) const
Sets selected items from the array of selected items' indexes.
Shows the dialog, returning either wxID_OK or wxID_CANCEL.
ymasuda 平成17年11月19日