Kanade's Delphi Stuff
Delphi Tips, Sample code and Tools
Copyright © 1997-2004, Sanjay Kanade
 
  Tips and Tricks on Delphi
Please read the DISCLAIMER before you use any of the tips from this web site. Go to main index
  Delphi Tips: TPageControl
Tip 65:  Hiding tabs and using it like a wizard
(modified: 26 Apr 2003)


Tip 71:  Making a form appear as a tabsheet
(modified: 30 Jan 2004)


  65: Hiding tabs and using it like a wizard
Date added/modified: 26 Apr 2003

I have done this again and again and yet, everytime I want to do this again, I don't remember how I did it. Hence, I have decided to put this tip here.

What if you want to hide just the tabs but show the pages just like a wizard with Prev, Next buttons. In Delphi 5, whatever I do in design view to solve this problem, it doesn't work. It seems to work only by code. The trick is to go through all the pages and set their TabVisible property to false. At the same time, the activePageIndex should be set to the desired page.

  71: Making a form appear as a tabsheet
Date added/modified: 30 Jan 2004

I found this trick on the following page: http://www.devexpress.com/forestandtrees.asp.

Just search for tabforms.zip in the above page and download that file. Nice sample code that allows you to make forms appear on tabsheets.



 

Copyright 1995-2004, Sanjay Kanade. All rights reserved.
All trademarks and copyrights belong to their respective owners.