Checking the disabled of a menu item

Frank D. Engel, Jr. fde101 at fjrhome.net
Tue Mar 15 14:03:55 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

put (line 1 of button "File" of group "Main_Menu" of cd "Store" of  
stack "Main_Display" contains "[") into theDisabledStatus

On Mar 15, 2005, at 1:55 PM, Graham Samuel wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten  
Son, that whosoever believeth in him should not perish, but have  
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCNzGb7aqtWrR9cZoRAsHOAJ4/XfzcwNZZc8NQFStS5uflPMyotQCeJAnR
geZv5hHUQFQAYMsQkFbCy88=
=o0hv
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list