int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
const wxString& caption,
int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
+
+WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
+ const wxString& caption,
+ const wxArrayString& choices,
+ int initialSelection,
+ wxWindow *parent = NULL);
+
+WXDLLIMPEXP_CORE wxString wxGetSingleChoice(const wxString& message,
+ const wxString& caption,
+ int n, const wxString *choices,
+ int initialSelection,
+ wxWindow *parent = NULL);
// Same as above but gets position in list of strings, instead of string,
// or -1 if no selection
int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
const wxString& caption,
int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
+
+WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
+ const wxString& caption,
+ const wxArrayString& choices,
+ int initialSelection,
+ wxWindow *parent = NULL);
+
+WXDLLIMPEXP_CORE int wxGetSingleChoiceIndex(const wxString& message,
+ const wxString& caption,
+ int n, const wxString *choices,
+ int initialSelection,
+ wxWindow *parent = NULL);
-// Return client data instead or NULL if cancelled
+// Return client data instead or NULL if canceled
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
const wxString& caption,
const wxArrayString& choices,
int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
const wxString& caption,
int y = wxDefaultCoord,
bool centre = true,
int width = wxCHOICE_WIDTH,
- int height = wxCHOICE_HEIGHT);
+ int height = wxCHOICE_HEIGHT,
+ int initialSelection = 0);
+
+WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
+ const wxString& caption,
+ const wxArrayString& choices,
+ void **client_data,
+ int initialSelection,
+ wxWindow *parent = NULL);
+
+
+WXDLLIMPEXP_CORE void* wxGetSingleChoiceData(const wxString& message,
+ const wxString& caption,
+ int n, const wxString *choices,
+ void **client_data,
+ int initialSelection,
+ wxWindow *parent = NULL);
// fill the array with the indices of the chosen items, it will be empty
// if no items were selected or Cancel was pressed - return the number of