Skip to main content

TdxCustomDockControl.UnDock Method

Undocks the control.

Declaration

procedure UnDock;

Remarks

Use the UnDock method if you need to undock the control from its parent control. After the UnDock method is called, the control is not docked to any parent and, thus, is not displayed. Note that this is not the same as just hiding the control by setting its Visible property to False.

The UnDock method is useful when you need to rearrange dock controls. It is recommended that you undock all controls before performing rearrangement. Otherwise, the layout may not be set properly. For instance, if docking one panel to another in order to form a side container, you need to be sure that the target panel is not within a tab container. If all controls are undocked before performing docking operations, you will have no need to worry about it.

Controls are also undocked when calling the Close method (or closing them using the close button) provided that the doUndockOnClose option is enabled. This option can be accessed via the Options property of the docking manager.

See Also