Disabling a tab

Pete pete at mollysrevenge.com
Sun Apr 1 14:07:16 EDT 2012


I have a tab control and I'm using the method of revealing data on each tab
by having groups with the same name as each tab which are hidden/shown when
a tab is clicked.

Depending on data conditions, I need to disable one of the tabs, meaning
that clicking ion it has no effect.  Right now, I'm doing this in a
selectionChanged handler that checks the data condition, beeps if the use
clicks on a disallowed tab, and leaves the original tab/group displayed.

That works OK but there is no visual indication that the tab is not
available.  Ideally, I'd like the text in the tab heading to be greyed out,
kinda like a disabled menu item.  Any ideas how to do that?


-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>



More information about the use-livecode mailing list