X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8d08dbd459c1b7be9c1d82d9a78a32ae2730d86..828f093601fa1985a8740ebf7102ab1e4cfe68f7:/docs/latex/wx/ctrlsub.tex diff --git a/docs/latex/wx/ctrlsub.tex b/docs/latex/wx/ctrlsub.tex index fe7dbbf5fe..f3d6767dfa 100644 --- a/docs/latex/wx/ctrlsub.tex +++ b/docs/latex/wx/ctrlsub.tex @@ -269,6 +269,15 @@ the new code. This method is only available if wxWidgets was compiled with future versions. +\membersection{wxControlWithItems::Select}\label{wxcontrolwithitemsselect} + +\func{void}{Select}{\param{int}{ n}} + +This is the same as \helpref{SetSelection}{wxcontrolwithitemssetselection} and +exists only because it is slightly more natural for controls which support +multiple selection. + + \membersection{wxControlWithItems::SetClientData}\label{wxcontrolwithitemssetclientdata} \func{void}{SetClientData}{\param{int}{ n}, \param{void *}{data}} @@ -310,7 +319,8 @@ pointers had been associated with the control items before. Sets the selection to the given item \arg{n} or removes the selection entirely if \arg{n} $==$ {\tt wxNOT\_FOUND}. -Note that this does not cause any command events to be emitted. +Note that this does not cause any command events to be emitted nor does it +deselect any other items in the controls which support multiple selections. \wxheading{Parameters} @@ -337,7 +347,7 @@ Sets the label for the given item. \membersection{wxControlWithItems::SetStringSelection}\label{wxcontrolwithitemssetstringselection} -\func{void}{SetStringSelection}{\param{const wxString\& }{ string}} +\func{bool}{SetStringSelection}{\param{const wxString\& }{ string}} Selects the item with the specified string in the control. This doesn't cause any command events being emitted. @@ -346,6 +356,11 @@ any command events being emitted. \docparam{string}{The string to select.} +\wxheading{Return value} + +\true if the specified string has been selected, \false if it wasn't found in +the control. + \wxheading{See also} \helpref{SetSelection}{wxcontrolwithitemssetselection}