Sign in Join
FPDoc Onlineexperiment

TToolButton.OnDragOver property

Member of TToolButtonpublishedIn unit ComCtrls

Event handler signalled when a control is dragged over the control instance.

Declaration

pascal
property OnDragOver:;

Description

OnDragOver is a TDragOverEvent property with the event handler signalled when another control is dragged over the current control. It is signalled from the DragOver method, and occurs when drag messages are handled for the control.

The Sender argument is the current TControl instance.

The Source argument contains the control instance which is being dragged over the control.

The X and Y arguments contain the control-relative coordinates for the mouse pointer when the event was triggered.

State indicates whether the event has occurred when the mouse pointer entered the control, was repositioned, or exited the control.

The Accept argument indicates whether the drag operation is handled in the routine or rejected. Set Accept to False to reject a drop on the control.

This description is the one of Controls.TControl.OnDragOver.

See also

  • DragOver
  • TDragOverEvent

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.