Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.OnDock Event

In This Article

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

#Declaration

Delphi
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