X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954b8ae60391d18b87a604e7919c87c0c6ae208b..e7300ec6d9ebbd1cfa2fcf12c0ce6e5aee85a152:/docs/latex/wx/sngchdlg.tex diff --git a/docs/latex/wx/sngchdlg.tex b/docs/latex/wx/sngchdlg.tex index 3ca1e4a513..dcb28e6599 100644 --- a/docs/latex/wx/sngchdlg.tex +++ b/docs/latex/wx/sngchdlg.tex @@ -25,14 +25,14 @@ and then pressing OK. \func{}{wxSingleChoiceDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message},\rtfsp \param{const wxString\& }{caption}, \param{int }{n}, \param{const wxString* }{choices},\rtfsp -\param{char**}{ clientData = NULL}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE},\rtfsp +\param{void**}{ clientData = NULL}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition}} Constructor, taking an array of wxString choices and optional client data. \func{}{wxSingleChoiceDialog}{\param{wxWindow* }{parent}, \param{const wxString\& }{message},\rtfsp \param{const wxString\& }{caption}, \param{const wxStringList\& }{choices},\rtfsp -\param{char**}{ clientData = NULL}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE},\rtfsp +\param{void**}{ clientData = NULL}, \param{long }{style = wxOK \pipe wxCANCEL \pipe wxCENTRE},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition}} Constructor, taking a string list and optional client data. @@ -65,6 +65,13 @@ Constructor, taking a string list and optional client data. Use \helpref{wxSingleChoiceDialog::ShowModal}{wxsinglechoicedialogshowmodal} to show the dialog. +\pythonnote{For Python the two parametes {\tt n} and {\tt choices} are collapsed +into a single parameter {\tt choices} which is expected to be a Python +list of strings.} + +\perlnote{In wxPerl there is just an array reference in place of {\tt n} +and {\tt choices}, and the client data array, if present, must have the +same length as the choices array.} \membersection{wxSingleChoiceDialog::\destruct{wxSingleChoiceDialog}} @@ -90,6 +97,12 @@ Returns the client data associated with the selection. Returns the selected string. +\membersection{wxSingleChoiceDialog::SetSelection} + +\constfunc{void}{SetSelection}{\param{int}{ selection}} + +Sets the index of the initially selected item. + \membersection{wxSingleChoiceDialog::ShowModal}\label{wxsinglechoicedialogshowmodal} \func{int}{ShowModal}{\void}