Option button menuitem disabling

Paul Hibbert lc at pbh.on-rev.com
Sun Jan 20 19:25:56 EST 2013


Just tried Win 7 (LC 5.5.3) and it appears to have exactly the same issue.

I tried this for a workaround, it's a bit drastic removing the choice, but it works:

## Store the menu items in a custom property "uText" ##

on menuPick pItemName
   lock screen					 -- Avoids a momentary flash of different text on the button
   put the uText of me into me                   -- Restore the menu items from the custom property
   delete line lineOffset(pItemName, me) of me   -- Delete the chosen item from the menu
   set the label of me to pItemName              -- Show the label as the chosen item
   // Process pItemName
end menuPick

Paul

On 2013-01-20, at 3:29 PM, J. Landman Gay wrote:

> On 1/20/13 5:06 PM, Robert Sneidar wrote:
>> I think it's a ui thing. Windows does not provide or define for
>> disabled menu items. I think.
> 
> I thought of that, can anyone else verify? It seems kind of stupid, if it's true. Would it only be XP or is it all versions of Windows?
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> 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





More information about the use-livecode mailing list