On Fri, 19 Dec 2003 13:11:43 +1100, "Alan"
Post by AlanI want to keep all my tab sheets in my TPageControl visible BUT can select
the individual programmatically, so I want to hide the tab sheets headers.
That means the user cannot click on the headers to select individual tab
sheet.
Are you are saying you don't want the user to be able to switch
between tabs and therefore want to hide the tab 'the sticky up bit'
in technical jargon so they can't click on an other.
If so the use the tab visible property so only one tab is visible at
time.
If you want to layout all the tabs but only provide access to one at a
time, then you could code that in the onchanging to ignore the users
selection. Don't forget that this event will fire when you switch tabs
programmatically.
Last but not least in my opinnion. Set ownerdraw on the page control
and then add some code to the ondrawtab event. do something in it to
lett the user know that the the tab isn't selectable.
If you want to get rid of the tab (sticky up bit) altogether then you
are using the wrong control, though I can't think of one off hand that
would do what you want which would be some sort of collection of
Tpanels I suppose.