X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaaa6a06a25774c18d10bb8182cc1934ed0ed9aa..a54d6c1bbb35f6adce30704c987496acc0337020:/docs/latex/wx/scrolbar.tex diff --git a/docs/latex/wx/scrolbar.tex b/docs/latex/wx/scrolbar.tex index 657fb9c811..cb4a11d0b9 100644 --- a/docs/latex/wx/scrolbar.tex +++ b/docs/latex/wx/scrolbar.tex @@ -12,16 +12,6 @@ events are received. \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} -\wxheading{Window styles} - -\twocolwidtha{5cm} -\begin{twocollist}\itemsep=0pt -\twocolitem{\windowstyle{wxSB\_HORIZONTAL}}{Specifies a horizontal scrollbar.} -\twocolitem{\windowstyle{wxSB\_VERTICAL}}{Specifies a vertical scrollbar.} -\end{twocollist} - -See also \helpref{window styles overview}{windowstyles}. - \wxheading{Remarks} A scrollbar has the following main attributes: {\it range}, {\it thumb size}, {\it page size}, and {\it position}. @@ -45,6 +35,16 @@ be called initially, from an {\bf OnSize} event handler, and whenever the applic changes in size. It will adjust the view, object and page size according to the size of the window and the size of the data. +\wxheading{Window styles} + +\twocolwidtha{5cm} +\begin{twocollist}\itemsep=0pt +\twocolitem{\windowstyle{wxSB\_HORIZONTAL}}{Specifies a horizontal scrollbar.} +\twocolitem{\windowstyle{wxSB\_VERTICAL}}{Specifies a vertical scrollbar.} +\end{twocollist} + +See also \helpref{window styles overview}{windowstyles}. + \wxheading{Event handling} To process input from a scrollbar, use one of these event handler macros to direct input to member @@ -61,7 +61,7 @@ functions that take a \helpref{wxScrollEvent}{wxscrollevent} argument: \twocolitem{{\bf EVT\_COMMAND\_PAGEDOWN(id, func)}}{Catch a page down command.} \twocolitem{{\bf EVT\_COMMAND\_THUMBTRACK(id, func)}}{Catch a thumbtrack command (continuous movement of the scroll thumb).} \end{twocollist}% -% + \wxheading{See also} \helpref{Scrolling overview}{scrollingoverview},\rtfsp @@ -141,15 +141,15 @@ same as the thumb size. \helpref{wxScrollBar::SetScrollbar}{wxscrollbarsetscrollbar} -\membersection{wxScrollBar::GetPosition}\label{wxscrollbargetposition} +\membersection{wxScrollBar::GetThumbPosition}\label{wxscrollbargetthumbposition} -\constfunc{int}{GetPosition}{\void} +\constfunc{int}{GetThumbPosition}{\void} -Returns the current position of the scrollbar. +Returns the current position of the scrollbar thumb. \wxheading{See also} -\helpref{wxScrollBar::SetPosition}{wxscrollbarsetposition} +\helpref{wxScrollBar::SetThumbPosition}{wxscrollbarsetthumbposition} \membersection{wxScrollBar::GetThumbLength}\label{wxscrollbargetthumblength} @@ -207,9 +207,9 @@ At present, this needs to be called {\it before} other set functions. \helpref{wxScrollBar::GetPageSize}{wxscrollbargetpagesize} \end{comment} -\membersection{wxScrollBar::SetPosition}\label{wxscrollbarsetposition} +\membersection{wxScrollBar::SetThumbPosition}\label{wxscrollbarsetthumbposition} -\func{void}{SetPosition}{\param{int}{ viewStart}} +\func{void}{SetThumbPosition}{\param{int}{ viewStart}} Sets the position of the scrollbar. @@ -219,7 +219,7 @@ Sets the position of the scrollbar. \wxheading{See also} -\helpref{wxScrollBar::GetPosition}{wxscrollbargetposition} +\helpref{wxScrollBar::GetThumbPosition}{wxscrollbargetthumbposition} \membersection{wxScrollBar::SetScrollbar}\label{wxscrollbarsetscrollbar}