RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDragObject.GetDragCursor Method

Indicates which cursor should be displayed in response to mouse moves.

Pascal
function GetDragCursor(Accepted: Boolean; X: Integer; Y: Integer): TCursor; virtual;
C++
virtual __fastcall TCursor GetDragCursor(Boolean Accepted, int X, int Y);

When the mouse is moved, GetDragCursor is called automatically. The Accepted parameter indicates whether the object under the mouse accepts the drag. The X and Y parameters represent the current position of the mouse. The TCursor value returned by GetDragCursor is used to indicate the current drag cursor. 

GetDragCursor returns crDrag to when Accepted is true, crNoDrop otherwise. 

 

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