Naive question about cascading menus

FlexibleLearning at aol.com FlexibleLearning at aol.com
Sun Mar 14 01:30:52 EST 2004


>Folks, I've puzzled over the docs, but I can't understand how I can have a
>menu in a normal menu bar (not a stack menu) which can have some items that 
>cascade (i.e. have submenus) and some that don't. There is a nice example
>in The Scripter's Scrapbook, where e.g. an item of the 'text'  menu 
>cascades into a list of fonts, while others don't cascade. It seems from
>the docs that (a) your menu has to be a stack menu and (b) its menuMode
>of 'cascade' applies to the whole menu (button), not just some items of it.
>Clearly I have missed something pretty massive. I feel dumb, but there
>it is.

You don't have to use 'cascade' style unless you are building the menu 
yourself from buttons in a popup stack. The easy way to generate hierarchical menus 
is to incude TAB as the first character in the button's text line

Item 1
    sub1.1
    sub1.2
Item 2
Item 3
    sub3.1
    sub3.2
    sub3.3

/H


More information about the use-livecode mailing list