What's On The Menu?

Peter Haworth pete at lcsql.com
Sun Dec 30 01:51:25 EST 2012


Thanks Paul, I'll give that a whirl.
Pete
lcSQL Software <http://www.lcsql.com>


On Sat, Dec 29, 2012 at 8:53 PM, Paul Hibbert <lc at pbh.on-rev.com> wrote:

> AFAIK you can't auto highlight the previous menu choice for a pulldown
> menu (although I may be wrong), but you can add a checkmark to the current
> choice.
>
> If its any use to you, try this slightly modified script from the LC
> Resources…
>
> on menuPick pItemName
>
>      ## Add a checkmark to the current choice
>    put the menuHistory of me into tChoice
>    put the uCheckedLine of me into tChecked
>    replace "!c" with empty in line tChecked of me
>    put "!c" before line tChoice of me
>    set the uCheckedLine of me to tChoice
>
>      ## Do something with the current choice…
>    answer "You chose" && quote & pItemName & quote & "."
>
> end menuPick
>



More information about the use-livecode mailing list