Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide tabsheets tab 1

Status
Not open for further replies.

earlrainer

Programmer
Mar 1, 2002
170
IN
how can i hide the tabs on top of the tabsheet,without making the whole tabsheet invisible?
if i make tabvisible:=false then whole tabsheet disappears
 
I presume you are using a TTabControl? I would suggest using a TPageControl instead. I have a project in which I am using a TPageControl. I added 3 tabs to it by right-clicking the component (and selecting new page). I then set the TabVisible property to false for the 3 tabsheets in my FormShow event i.e.
Code:
  TabSheet1.TabVisible := False;
  TabSheet2.TabVisible := False;
  TabSheet3.TabVisible := False;
And this has the effect of retaining the sheet but removing the tabs - which is ideal for the wizard-type application I was designing.

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top