TdxCustomDockControl.CanActive Method
Returns a value indicating whether the dock control can be activated.
Declaration
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.