RAD Studio VCL Reference
TPageControl.DockOver Method

Indicates whether an object that is dragged over the page control can be docked.

procedure DockOver(Source: TDragDockObject; X: Integer; Y: Integer; State: TDragState; var Accept: Boolean); override;
virtual __fastcall DockOver(TDragDockObject Source, int X, int Y, TDragState State, Boolean Accept);

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.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!