X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..12a3f2275c94a345cf83abf5151db68391859623:/docs/latex/wx/spinctrl.tex diff --git a/docs/latex/wx/spinctrl.tex b/docs/latex/wx/spinctrl.tex index 4cf5aaa00a..3fa2ecb4d4 100644 --- a/docs/latex/wx/spinctrl.tex +++ b/docs/latex/wx/spinctrl.tex @@ -34,9 +34,15 @@ functions that take a \helpref{wxSpinEvent}{wxspinevent} argument: \twocolwidtha{7cm} \begin{twocollist}\itemsep=0pt -\twocolitem{{\bf EVT\_SPINCTRL(id, func)}}{Generated whenever spinctrl is updated} +\twocolitem{{\bf EVT\_SPINCTRL(id, func)}}{Generated whenever the numeric value +of the spinctrl is updated} \end{twocollist}% +You may also use the \helpref{wxSpinButton}{wxspinbutton} event macros, however +the corresponding events will not be generated under all platforms. Finally, if +the user modifies the text in the edit part of the spin control directly, the +{\tt EVT\_TEXT} is generated, like for the \helpref{wxTextCtrl}{wxtextctrl}. + \wxheading{See also} \helpref{Event handling overview}{eventhandlingoverview}, @@ -109,6 +115,17 @@ Gets the value of the spin control. Sets range of allowable values. +\membersection{wxSpinCtrl::SetSelection}\label{wxspinctrlsetselection} + +\func{void}{SetSelection}{\param{long }{from}, \param{long }{to}} + +Select the text in the text part of the control between positions +{\it from} (inclusive) and {\it to} (exclusive). This is similar to +\helpref{wxTextCtrl::SetSelection}{wxtextctrlsetselection}. + +{\bf NB:} this is currently only implemented for Windows and generic versions +of the control. + \membersection{wxSpinCtrl::GetMin}\label{wxspinctrlgetmin} \constfunc{int}{GetMin}{\void}