RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDragControlObject.GetDragCursor Method

Returns the correct drag cursor to display at the X, Y position for the drag and drop operation.

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

If the control at the X, Y position accepts the drag (in an OnDragOver event handler), the drag object sets the drag cursor to the control's DragCursor property; otherwise, it displays the crNoDrop cursor. 

 

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