Disabling a tab

Pete pete at mollysrevenge.com
Sun Apr 1 16:45:05 EDT 2012


Thanks Marty. Sometimes the obvious just slips by me!
Pete

On Sun, Apr 1, 2012 at 12:43 PM, Marty Knapp <martyknapp at comcast.net> wrote:

> 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?
>>
>>
>>
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
>


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



More information about the use-livecode mailing list