RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDragImageList.BeginDrag Method

Starts the dragging of an image list.

Pascal
function BeginDrag(Window: HWND; X: Integer; Y: Integer): Boolean;
C++
__fastcall Boolean BeginDrag(HWND Window, int X, int Y);

Use BeginDrag to start dragging the image set by SetDragImage. The image starts at the position specified by X and Y, which are the coordinates of the drag image relative to the window whose handle is specified by the Window parameter. BeginDrag returns true if it was successful in starting the drag of the image. 

 

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