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

Returns a value indicating whether the dock control can be activated.

#Declaration

Delphi
function CanActive: Boolean; virtual;

#Returns

Type
Boolean

#Remarks

You can activate the control either by calling its Activate method or by changing the docking controller’s ActiveDockControl property. The controller can be obtained using the dxDockController function call. Active controls have a different appearance in some views. To perform additional actions when a control becomes active handle the control’s OnActivate event.

The return value of the CanActive function indicates whether the control is allowed to be active. As implemented in the TdxCustomDockControl class, this method simply returns False. The TdxDockPanel and TdxTabContainerDockSite classes override this method to return True.

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

See Also