RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageControl.CanShowTab Method

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

Pascal
function CanShowTab(TabIndex: Integer): Boolean; override;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!