Option Menu Problem
Dave
dave at looktowindward.com
Tue Apr 22 12:04:34 EDT 2008
On 22 Apr 2008, at 16:18, Trevor DeVore wrote:
> On Apr 22, 2008, at 11:11 AM, Dave wrote:
>
>> I have an option menu that is set dynamically based on a list of
>> items. The list can be empty, on the menu object I have the
>> showName property set true. When the list is not empty all works
>> ok, when an item is selected, the new selection is shown as the
>> menu contents, however when the list is empty the name of the menu
>> object shows in the object contents rather that it just being
>> empty. If I set the show name property to false then when the list
>> is empty it shows as empty in the contents but when not empty the
>> selected item is not displayed when selected.
>>
>> How can I get the desired effect?
>
> Try setting the text to a space (" ") and disabling the menu when
> there are no items to select. Will this work for you?
>
Ok, that kind of works except I set the text contents in the
mouseDown hander of the menu and if disabled this handler doesn't get
called. Why doesn't it work like a regular popup menu ala MacOS X?
Any other ideas on how to fix this?
All the Best
Dave
More information about the use-livecode
mailing list