RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.CalcSizingState Method

Determines the appearance of the mouse cursor during resizing.

Pascal
procedure CalcSizingState(X: Integer; Y: Integer; var State: TGridState; var Index: Longint; var SizingPos: Integer; var SizingOfs: Integer; var FixedInfo: TGridDrawInfo); override;
C++
virtual __fastcall CalcSizingState(int X, int Y, TGridState State, Longint Index, int SizingPos, int SizingOfs, TGridDrawInfo FixedInfo);

Use CalcSizingState to determine if the mouse cursor should be changed to a resize or drag cursor based on where the mouse is in the grid. For example, cursor over a grid line, in the fixed cell region, and column resize is enabled = resize cursor. 

 

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