Sign in Join
FPDoc Onlineexperiment

TCustomControlBar.DragOver procedure

Member of TCustomControlBarprotectedIn unit ExtCtrls

Called when an object is dragged over this control; Determines whether a drop is acceptable, using the OnDragOver handler.

Declaration

pascal
procedure DragOver(Source: TObject; X: Integer; Y: Integer; 
 State: TDragState; var Accept: Boolean); override

Description

An OnDragOver handler is required, or any drop will be rejected (Accept becomes False).

When an OnDragOver handler is installed, Accept is set to True and can be changed by the handler.

Source can be either a TDragObject, or the dragged control.

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

See also

  • OnDragOver
  • DockOver

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