I'm trying to hide a tab (button) in a tab panel.
Tab panel name is 'Main Tab Menu'
I can disable it via:
disable menuItem 2 of Button "Main Tab Menu"
and have tried:
set the visible of menuItem 2 of Button "Main Tab Menu" to false
which has no effect
Also tried:
hide menuItem 2 of Button "Main Tab Menu"
which hides the whole tab panel.
Anyone know how to do this?
Hide tab panel button -- SOLVED --
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 3
- Joined: Tue May 30, 2006 11:12 am
Hide tab panel button -- SOLVED --
Last edited by AndyPiddock on Wed Oct 29, 2008 4:31 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Andy,
The only thing you can do is change the 'text' property of the tab button, effectively removing the line.
Jan Schenkel.
The only thing you can do is change the 'text' property of the tab button, effectively removing the line.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
-
- Posts: 3
- Joined: Tue May 30, 2006 11:12 am
Andy,
look at your tab panel in the inspector there you see under basic properties at the bottom "tabs" etc.
to control it from a script or something like this
corrected an error where instead of "myTabPanel" the script referred to btn 1 from an earlier version of the script.
cheers
bernd
look at your tab panel in the inspector there you see under basic properties at the bottom "tabs" etc.
to control it from a script
Code: Select all
on mouseUp pMouseBtnNo
if the number of lines of the text of btn "myTabPanel" = 3 then
set the text of btn "myTabPanel" to "Tab 1" & cr & "Tab3"
else
set the text of btn "myTabPanel" to "Tab1" & cr & "Tab2" & cr & "Tab3"
end if
end mouseUp
corrected an error where instead of "myTabPanel" the script referred to btn 1 from an earlier version of the script.
cheers
bernd
Last edited by bn on Thu Oct 30, 2008 1:00 pm, edited 1 time in total.