Skip to main content

TdxCustomDockControl.OnDock Event

Fires immediately after a dock control has been docked to a site.

Declaration

property OnDock: TdxDockEvent read; write;

Remarks

Handle the OnDock event to perform actions immediately after docking a control to a site. The docked control is identified by the Sender parameter. The Site parameter represents the target site.

The ADockType parameter enables you to determine whether the control has been docked to an edge of the site (and which edge) or to its entire client area. This parameter matches the DockType property of the docked control. The AIndex parameter represents the index of the docked site within the container where it has been docked. If the target site is not a side container or a tab container, the parameter value is -1. Actually, this parameter matches the DockIndex property of the docked control.

Note that the OnDock event doesn’t fire if the control now floats or has been dragged from one floating position to another. If you need to provide a response to such actions, handle the OnEndDocking event.

See Also