checking/unchecking menus after a menu with cascading menus Re: checking/unchecking menus after a menu with cascading menus

Ken Ray kray at sonsothunder.com
Sun Aug 15 11:46:49 EDT 2004


On 8/15/04 4:46 AM, "Frank Leahy" <frank at backtalk.com> wrote:

>
> That's correct -- on the Mac (not sure about Windows), disabled and
> sub-menu items are always considered unselectable, i.e. when you
> release on a disabled menu item or on a sub-menu item, no menu item is
> chosen or reported.

Well, that's true for disabled menu items, but not for sub-menu items - so
long as you remove the "autoarm" property. If you do that, what you get back
is the form: <menuItemName>|<subMenuItemName|<subSubMenuItemName>, so in a
menu that looks like this:

Test
    SubTest1
        SubSubTest1
        SubSubTest2
    SubTest2

If you pick "SubSubTest2", you get back in "menuPick":

  Tets|SubTest1|SubSubTest2

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list