TScrollBar.OnScroll property
Event handler signalled when scrollbar messages are applied.
Declaration
property OnScroll:;Description
OnScroll is a
TScrollEvent property which provides an
event handler signalled when the position for the scrollbar has been changed.
Sender contains the scrollbar for the event.
ScrollCode contains the scroll command constant for the operation.
ScrollPos contains the new position for the scrollbar when the
operation is completed. The event handler can be used to override the value
in ScrollPos before it is applied to the Position property in the class
instance.
OnScroll is signalled (when assigned) from the Scroll method, and
occurs when control messages, like CNHScroll and CNVScroll, are processed and
applied.
Use the OnChange event to respond to programmatic changes to
property values in the scrollbar.
This description is the one of StdCtrls.TCustomScrollBar.OnScroll.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
