[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Handler for a drag message, sent by the DragManager to the current target control.
Source position: controls.pp line 1476
protected function TControl.DoDragMsg( |
ADragMessage: TDragMessage; |
APosition: TPoint; |
ADragObject: TDragObject; |
ATarget: TControl; |
ADocking: Boolean |
):LRESULT; virtual; |
ADragMessage |
|
The task to perform. |
APosition |
|
The mouse position in screen coordinates. |
ADragObject |
|
The drag object. |
ATarget |
|
The drop target, Nil if none. |
ADocking |
|
Distinguishes between a drag-drop and drag-dock operation. |
The Result member is polymorphic:
For dmFindTarget, the result is a reference to the the target control. For dmDragDropm the result is zero (0). For other drag messages, the result indicates acceptance of the drop message.
These messages can be sent while dragging:
The Source argument of the invoked methods is the DragDockObject when docking. If the DragObject has been AutoCreated, the dragged control is passed as the Source. Otherwise, the DragObject itself is passed as Source.
Version 3.2 | Generated 2024-02-25 | Home |