#include </home/zeitlin/src/wx/github/interface/wx/choicdlg.h>
This class represents a dialog that shows a list of strings, and allows the user to select one or more.
This class supports the following styles:
Public Member Functions | |
wxArrayInt | GetSelections () const |
Returns array with indexes of selected items. | |
void | SetSelections (const wxArrayInt &selections) |
Sets selected items from the array of selected items' indexes. | |
int | ShowModal () |
Shows the dialog, returning either wxID_OK or wxID_CANCEL. | |
wxMultiChoiceDialog (wxWindow *parent, const wxString &message, const wxString &caption, int n, const wxString *choices, long style=wxCHOICEDLG_STYLE, const wxPoint &pos=wxDefaultPosition) | |
Constructor taking an array of wxString choices. | |
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. |
wxMultiChoiceDialog::wxMultiChoiceDialog | ( | wxWindow * | parent, |
const wxString & | message, | ||
const wxString & | caption, | ||
int | n, | ||
const wxString * | choices, | ||
long | style = wxCHOICEDLG_STYLE , |
||
const wxPoint & | pos = wxDefaultPosition |
||
) |
Constructor taking an array of wxString choices.
parent | Parent window. |
message | Message to show on the dialog. |
caption | The dialog caption. |
n | The number of choices. |
choices | An array of strings, or a string list, containing the choices. |
style | A dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE. |
pos | Dialog position. Not Windows. |
wxPerl Note: Not supported by wxPerl.
wxMultiChoiceDialog::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.
parent | Parent window. |
message | Message to show on the dialog. |
caption | The dialog caption. |
choices | An array of strings, or a string list, containing the choices. |
style | A dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE. |
pos | Dialog position. Not Windows. |
wxPerl Note: Use an array reference for the choices parameter.
wxArrayInt wxMultiChoiceDialog::GetSelections | ( | ) | const |
Returns array with indexes of selected items.
void wxMultiChoiceDialog::SetSelections | ( | const wxArrayInt & | selections | ) |
Sets selected items from the array of selected items' indexes.
int wxMultiChoiceDialog::ShowModal | ( | ) | [virtual] |
Shows the dialog, returning either wxID_OK or wxID_CANCEL.
Reimplemented from wxDialog.