.\" This is a wxWidgets manpage page generated from the XML docs .TH wxSingleChoiceDialog 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxSingleChoiceDialog \- Dialog to get a single selection from a list and return the string .SH DESCRIPTION This class represents a dialog that shows a list of strings, and allows the user to select one. Double-clicking on a list item is equivalent to single-clicking and then pressing OK. .SH "PARENTS" wxDialog wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/choicdlg.h .SH MEMBERS .SS wxSingleChoiceDialog (wxWindow* parentconst wxString& messageconst wxString& captionint nconst wxString* choicesvoid** clientData = NULLlong style = wxCHOICEDLG_STYLEconst wxPoint& pos = wxDefaultPosition) .SS wxSingleChoiceDialog (wxWindow* parentconst wxString& messageconst wxString& captionconst wxArrayString& choicesvoid** clientData = NULLlong style = wxCHOICEDLG_STYLEconst wxPoint& pos = wxDefaultPosition) Constructor, taking an array of wxString choices and optional client data. .SS int GetSelection () Returns the index of selected item. .SS char* GetSelectionClientData () Returns the client data associated with the selection. .SS wxString GetStringSelection () Returns the selected string. .SS void SetSelection (int selection) Sets the index of the initially selected item. .SS int ShowModal () Shows the dialog, returning either wxID_OK or wxID_CANCEL. .SH "SEE ALSO" wxDialog wxWindow wxEvtHandler wxObject wxSingleChoiceDialog overview , wxMultiChoiceDialog .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.