Checking the disabled of a menu item

Graham Samuel graham.samuel at blueyonder.co.uk
Tue Mar 15 13:55:42 EST 2005


Although you can enable and disable a menu item, as in

disable menuItem 1 of menu "myMenu" of grp "MyMenuGrp" of cd 1 of stack  
"myStack"

you can't check the disabled property because menuItems don't have one  
- this is explained in the docs (via the IDE's Help menu as discussed  
in another thread). How then can you check the disabled status of a  
menu item?

[My attempts to understand this (i.e. to answer the question "can you  
see the left bracket that is apparently placed at the beginning of the  
item by the compiler to mark the item as disabled?") have been hampered  
by the IDE, which I **think** is preventing me from executing this in  
the message box

  put Menuitem 1 of menu "File" of group "Main_Menu" of cd "Store" of  
stack "Main_Display"

when I try to do so, I get

  &New Mainstack

which of course comes from the IDE's own main menu - I guess this may  
be a bug, but I will look at it some more before reporting it  
properly.]

Anyway how do people generally check the disabled status of menu items?

TIA

Graham
------------------------------------------------------------------------ 
---
Graham Samuel / The Living Fossil Co. / UK and France



More information about the use-livecode mailing list