Vcl.RibbonActnCtrls.TRibbonApplicationMenuButton.DragOver

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

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.RibbonActnCtrls.pas
Vcl.RibbonActnCtrls.hpp
Vcl.RibbonActnCtrls TRibbonApplicationMenuButton

Description

OnDragOver event dispatcher.

DragOver is an OnDragOver event dispatcher.

Set the Accept parameter to True to indicate that the user can drop the dragged object on the control. Set 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. If the control is on a TRibbonApplicationMenuBar, don't allow dropping of the control. If the submenu is not currently visible, make it visible by calling the Click method.

See Also