Show: Delphi C++
Display Preferences

Vcl.Controls.TControl.DragOver

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

DYNAMIC void __fastcall DragOver(System::TObject* Source, int X, int Y, System::Uitypes::TDragState State, bool &Accept);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Is an OnDragOver event dispatcher.

Override DragOver to add additional code that executes before the OnDragOver event handler is called.

DragOver sets the Accept parameter to true to indicate that the user can drop the dragged object on the control. It sets Accept to false to indicate that the user cannot drop the dragged object on the control.

The Source parameter is the object being dragged.

The State parameter indicates how the dragged object is moving in relation to the control. X and Y indicate the current position of the mouse.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance