Vcl.ComCtrls.TPageControl.DockOver
Delphi
procedure DockOver(Source: TDragDockObject; X, Y: Integer;
State: TDragState; var Accept: Boolean); override;
C++
DYNAMIC void __fastcall DockOver(Vcl::Controls::TDragDockObject* Source, int X, int Y, System::Uitypes::TDragState State, bool &Accept);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TPageControl |
Description
Indicates whether an object that is dragged over the page control can be docked.
DockOver is called automatically when the user drags a dockable window over the page control.
The Source parameter describes the object that is being dragged.
The X and Y parameters give the current position of the dragged control.
The State parameter indicates how the mouse is moving.
DockOver initializes the Source parameter to reflect the dockable region of the page control and generates an OnDockOver event. An OnDockOver event handler can change the Accept parameter to false if the Source control should not be docked.
Note: DockOver is only called if the DockSite property is true.