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

TDockOverEvent

The type of an OnDockOver handler.

Declaration

Source position: controls.pp line 581

type TDockOverEvent = procedure(

  Sender: TObject;

  Source: TDragDockObject;

  X: Integer;

  Y: Integer;

  State: TDragState;

  var Accept: Boolean

) of object;

Arguments

Sender

  

The possible drop target.

Source

  

The DragDock object, containing information about the dragged object.

X

  

X coordinate of the mouse on screen.

Y

  

Y coordinate of the mouse on screen.

State

  

The current DragState (entering, leaving or moving over the target).

Accept

  

Set Accept to False to reject an drop (default is True).

Description

An OnDockOver event is sent by a dock site, when an object is dragged over it. The handler can specify whether a drop will be accepted or rejected.

See also

TDragOverEvent

  

The type of an OnDragOver handler.


Version 3.2 Generated 2024-02-25 Home