October 31st, 2012, 07:06 AM
Hide a TTabbedNotebook Tab
I'm needing to hide a single tab of ttabbednotebook component. I googled it and ask in some other forums. No response.
Would someone of you able to help me?
before: tab1 tab2 tab3 tab4 tab5
after: tab1 tab2 tab4 tab5
Greetings from São Paulo - Brasil
October 31st, 2012, 07:21 AM
Use the page ID and "TabVisible" and "TabEnabled"
Originally Posted by nightrider43
Will make first tab invisible.
Will make first tab disabled.
I had this exact same issue recently but managed to find help on google after a bit of searching. I have no idea why Delphi does it this way.
October 31st, 2012, 07:42 AM
The component we are talking about is TTabbedNotebook, no Notebook.
The properties TabVisible and TabEnabled are not available in this case.
October 31st, 2012, 07:46 AM
I assumed it would be same as a pagecontrol. Using the ID.
October 31st, 2012, 08:11 AM
TTabbedNotebook.Pages.Delete(2) works fine.