RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TDrawItemEvent Type

TScrollEvent is the type of an OnScroll event handler.

Pascal
TDrawItemEvent = procedure (Control: TWinControl; Index: Integer; Rect: TRect; State: TOwnerDrawState) of object;
C++
(Control: TWinControl; Index: Integer; Rect: TRect; State: TOwnerDrawState) ( TDrawItemEvent)();

StdCtrls

TScrollEvent defines the type of method procedure that you must define in order to implement the OnScroll event of a visual component such as TScroll.  

The OnScroll event occurs when the user scrolls a scroll bar with the mouse or keyboard.  

Sender is a reference to the component invoking the OnScroll event. 

ScrollCode defines the user scroll action that was performed. 

ScrollPos provides the new scroll position. 

 

OnScroll 

TScrollCode

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!