WxGetSingleChoice
Jump to navigation
Jump to search
Pops up a dialog box containing a message, OK/Cancel buttons and a single-selection listbox.
The user may choose an item and press OK to return a string or Cancel to return the empty string. Use wxGetSingleChoiceIndex() if empty string is a valid choice and if you want to be able to detect pressing Cancel reliably.
You may pass the list of strings to choose from either using choices which is an array of n strings for the listbox or by using a single aChoices parameter of type wxArrayString.
If centre is true, the message text (which may include new line characters) is centred; if false, the message is left-justified.
wxPerl Note: Use an array reference for the choices parameter.