RAD Studio VCL Reference
TPageControl.CanShowTab Method

Indicates whether a tab sheet in the page control can be selected.

function CanShowTab(TabIndex: Integer): Boolean; override;
virtual __fastcall Boolean CanShowTab(int TabIndex);

Call CanShowTab to determine whether a tab can be selected or accessed. 

TabIndex is the index of the tab in the list of tab sheets maintained by the Pages property. 

CanShowTab returns true if the specified Tab sheet is enabled (its Enabled property is true ). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!