TGridScroller.Start procedure
Stores the scroll direction and starts the internal timer for the class instance.
Declaration
procedure Start(ADir: TPoint)Arguments
ADir | TPoint instance with the relative scroll direction for an associated grid control. |
Description
Start is a method used to configure and activate the scroller
class instance.
Start stores the value from the ADir argument to the Dir member in
the class instance. The TPoint value contains the relative scroll direction
for the associated grid control. The X member indicates the horizontal scroll
direction; -1 scrolls toward the left, and 1 scrolls toward the right.
Similarly, the Y member indicates the vertical scroll direction; -1 scrolls
toward the top, and 1 scrolls toward the bottom.
Start sets the value for the Enabled property in the internal TTimer instance to True. This causes the Callback routine, passed as argument to the constructor, to be executed when the time Interval (200ms) has elapsed.
Start is called when a TGridScroller instance is assigned for the grid control, and occurs when column or row drag operations are handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
