Skip to main content

TdxCustomDockControl.Close Method

Closes the dock control.

Declaration

procedure Close;

Remarks

The behavior of the Close method depends on the control for which it is called and options specified by the Options property of the docking manager. The list below describes possible actions performed by this method:

  • If the Close method is called for any dock control except tab containers, its behavior depends on the doFreeOnClose and doUndockOnClose options. If the doFreeOnClose option is enabled, the control is destroyed when closed. If the doUndockOnClose option is enabled, the control is undocked when closed (see the UnDock method description for details). If neither of these options are enabled, the control is simply hidden (its Visible property is set to False).

  • If the Close method is called for a tab container, its behavior depends on the doTabContainerCanClose option. If the option is enabled, the Close method closes the tab container as for other dock controls. Otherwise, the method closes the active child of the tab container.

See Also