Skip to main content

TdxCustomDockControl.CanAutoHide Method

Returns a value indicating whether the control’s auto hide feature can be enabled.

Declaration

function CanAutoHide: Boolean; virtual;

Returns

Type
Boolean

Remarks

When a panel or tab container is docked to a site, the auto hide feature can be enabled. End-users enable it by pressing the auto hide button within the control’s caption (see the CaptionButtons property for details). The feature can be enabled via code by setting the dock control’s AutoHide property to True.

The CanAutoHide method’s return value indicates whether the feature is currently available. If this method returns True, the auto hide button is displayed within the control’s caption and setting the AutoHide property to True succeeds.

As implemented in the TdxCustomDockControl class, the CanAutoHide method simply returns False. The TdxDockPanel, TdxTabContainerDockSite and TdxSideContainerDockSite classes override this method to return True when a control is docked to a site.

Normally, you will have no need to use this method in applications.

See Also