wxmultichoicedialogthis class represents a dialog that shows a list of strings, and allows the user to select one or more. derived from
wxdialog include files <wx/choicdlg.h> see also wxmultichoicedialog overview, wxsinglechoicedialog members
wxmultichoicedialog::wxmultichoicedialog
wxmultichoicedialog::wxmultichoicedialogwxmultichoicedialog(wxwindow* parent, const wxstring& message, const wxstring& caption, int n, const wxstring* choices, long style = wxchoicedlg_style, const wxpoint& pos = wxdefaultposition) wxmultichoicedialog(wxwindow* parent, const wxstring& message, const wxstring& caption, const wxarraystring& choices, long style = wxchoicedlg_style, const wxpoint& pos = wxdefaultposition) constructor taking an array of wxstring choices. parameters parent
message
caption
n
choices
style
pos
remarks use wxmultichoicedialog::showmodal to show the dialog. wxpython note: 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 note: in wxperl there is just an array reference in place of n.
wxmultichoicedialog::getselectionswxarrayint getselection() const returns array with indexes of selected items.
wxmultichoicedialog::setselectionsvoid setselections(const wxarrayint& selections) const sets selected items from the array of selected items' indexes.
wxmultichoicedialog::showmodalint showmodal() shows the dialog, returning either wxid_ok or wxid_cancel.
|