Disabling a tab
Marty Knapp
martyknapp at comcast.net
Sun Apr 1 15:43:57 EDT 2012
Hey Pete,
Using "disable menuItem 2 of btn "Tab Menu" seems to work.
Marty Knapp
> 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?
>
>
More information about the use-livecode
mailing list