RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.DockOver Method

Responds when a docking client is dragged over the windowed control.

Pascal
procedure DockOver(Source: TDragDockObject; X: Integer; Y: Integer; State: TDragState; var Accept: Boolean); dynamic;
C++
__fastcall DockOver(TDragDockObject Source, int X, int Y, TDragState State, Boolean Accept);

DockOver is called automatically for dock sites when a dockable object is dragged over them. As implemented in TWinControl, DockOver positions the docking rectangle and then calls DoDockOver to generate an OnDockOver event. 

Override DockOver to perform additional actions when another control is dragged over the control. 

DockOver is called only if DockSite is true. 

 

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