DelphiFAQ Home Search:

Disable or hide the tabs of a TPageControl

 

comments1 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

Every page of a TPageControl is an instance of TTabSheet.
It has a property named TabVisible. If you set this in the
object inspector to false, you will have the classic notebook
view, without tabs:

  // disable all tabs
  for i := 0 to PageControl1.Pages.Count-1 do
    PageControl1.Pages[i].TabVisible := false;
  // force a specific page
  PageControl1.ActivePage := PageControl1.Pages[1];
You don't like the formatting? Check out SourceCoder then!
Content-type: text/html

Comments:

2005-12-12, 09:31:45
rschnz from Russian Federation  
rating
It works, thank you.
If you don't like the frame around the tabsheets, just set the Style property to tsButtons.

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: