TCustomScrollBar.Scroll procedure
Signals the OnScroll event handler.
Declaration
procedure Scroll(ScrollCode: TScrollCode; var ScrollPos: Integer)
; virtualArguments
ScrollCode | Scroll command code for the operation; up or down a line, a page, to the top or bottom, etc. |
ScrollPos | The new position for the scrollbar. |
Description
Scroll is a method used to signal the
OnScroll event
handler (when assigned) for the control.
ScrollCode contains the scrollbar command constant for the scroll
operation.
ScrollPos contains the new position for the scrollbar
when the operation is completed.
Scroll is called from the implementation of the private DoScroll method, which handles scrollbar control messages and sets the values for the arguments to the method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
