[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TGridScroller.Start

Stores the scroll direction and starts the internal timer for the class instance.

Declaration

Source position: grids.pas line 737

public procedure TGridScroller.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

TCustomGrid.MouseMove

  

Applies a change in the mouse pointer position to the grid control.

TCustomGrid.MouseUp

  

Handles a mouse up event for the grid control.

TPoint


Version 4.0 Generated 2025-05-03 Home