[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TDragMessage

Message types used in DragManager.

## Declaration

Source position: controls.pp line 495

`type TDragMessage = (`
`dmDragEnter,` |  | mouse enters control.
`dmDragLeave,` |  | mouse leaves control.
`dmDragMove,` |  | mouse moves over control (after dmDragEnter).
`dmDragDrop,` |  | control dropped.
`dmDragCancel,` |  | dragging aborted.
`dmFindTarget` |  | find possible target control under the mouse.
`);`

## Description

All messages are sent to the target control, except dmDragDrop and dmDragCancel is sent to the source control.

dmDragEnter
  Mouse enters control
dmDragLeave
  Mouse leaves control
dmDragMove
  Mouse moves over control (after dmDragEnter)
dmDragDrop
  Control dropped
dmDragCancel
  Dragging aborted
dmFindTarget
  Find child control under the mouse

## Version info

Modified in LCL 3.0 to be an alias to TDragMessage in System.UITypes for FPC 3.2.3 or higher.