Hide PanelGadget tab?

Windows specific forum
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Hide PanelGadget tab?

Post by BarryG »

I've got a PanelGadget made up of 3 tabs where I need to hide the middle tab for the moment (for a test version of my app), as though it and its gadgets didn't exist. Is there a way to easily do that, or do I really need to go in and remove the tab code and all its gadgets and their code and events? Seems like a lot of work because there's a hell of a lot of code in that panel already (callbacks and such for the gadgets inside it, too) so going through and commenting it all out will be a logistical nightmare. I'd much rather just somehow hide it so the user isn't aware of it.
wombats
Enthusiast
Enthusiast
Posts: 663
Joined: Thu Dec 29, 2011 5:03 pm

Re: Hide PanelGadget tab?

Post by wombats »

Have you considered using the TabBarGadget? Its tabs aren’t linked to a gadgetlist, so you could hide the gadgets (put them in a ContainerGadget and you can do it with one command) and then remove the tab.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4635
Joined: Sun Apr 12, 2009 6:27 am

Re: Hide PanelGadget tab?

Post by RASHAD »

Egypt my love
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Hide PanelGadget tab?

Post by BarryG »

Posted my reply there.
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4635
Joined: Sun Apr 12, 2009 6:27 am

Re: Hide PanelGadget tab?

Post by RASHAD »

New version added
Have fun
Egypt my love
Post Reply