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

TScrollEvent

Handler type for scrolling events.

Declaration

Source position: stdctrls.pp line 62

type TScrollEvent = procedure(

  Sender: TObject;

  ScrollCode: TScrollCode;

  var ScrollPos: Integer

) of object;

Arguments

Sender

  

The scrollbar

ScrollCode

  

The scroll action.

ScrollPos

  

The suggested new scroll position. Change this value to implement custom scroll behaviour.

Description

The handler is called before the new Position is set. It can adjust the new position, based on the parameters and the (old) scrollbar.Position.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.