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.CanAutoHide Method

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

#Declaration

Delphi
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