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.OnClose Event

In This Article

Fires when the dock control is closed.

#Declaration

Delphi
property OnClose: TdxDockControlNotifyEvent read; write;

#Remarks

Dock controls can be closed by calling their Close method. End-users can do this by clicking the close button within the control’s caption or by clicking the close button of the floating window. Please refer to the CaptionButtons property for details on caption buttons.

Whenever a dock control is closed the OnClose event is raised. Its Sender parameter identifies the closed control.

Note that the OnClose event is actually raised before the control is closed. Thus, even when the doUndockOnClose or doFreeOnClose options are enabled, the control isn’t undocked or destroyed until after the event handler has been executed. These options are available via the Options property of the docking manager.

See Also