RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.DoMouseWheelUp Method

Performs tasks when the mouse wheel is rotated upward.

Pascal
function DoMouseWheelUp(Shift: TShiftState; MousePos: TPoint): Boolean; override;
C++
virtual __fastcall Boolean DoMouseWheelUp(TShiftState Shift, TPoint MousePos);

Override DoMouseWheelUp to perform tasks when the mouse wheel is rotated downward. 

DoMouseWheelUp should return false if the control's parent should handle the message. 

In TCustomGrid, DoMouseWheelUp decrements the current row and returns true. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!