checking/unchecking menus after a menu with cascading menus

moe2 at shaw.ca moe2 at shaw.ca
Sat Aug 14 10:02:55 EDT 2004


since i did not get a reply regarding a request
for script to check/uncheck a cascade menu
and menu that follows a cascading menu
from anyone ... including the RR people

is it true that no one can do this and that there is a bug in RR?


> i would sure appreciate someone writing out the script that would
> correctly check and uncheck all seven menu items as illustrated
> in the Documentation
> 
> i found a cascade menu in the Search Documentation by typing in
>         "menus and the menu bar"
> selecting topic   "About menus and the menu bar"
> and in the sixth line of the text, clicking the hotText "submenus"
> 
> these are the four menuItems of ONE menu that are displayed,
> and Alignment has 3 cascading menuItems: left, center, right
> 
>   Format
>   Alignment
>   Size
>   Style
> 
> the documentation script to check and uncheck the Size and Style menu
> items does not (those menuItems after a cascading menuItem)
> 
> 
> here are all of the methods from the documentation:
> 
> on menuPick theItem
> put the menuHistory of me into myItemNumber
> if char 1 to 2 of line myItemNumber of me is "!c"
> then delete char 1 to 2 of line myItemNumber of me
> else put "!c" before line myItemNumber of me
> 
> repeat with x = 1 to the number of lines in me
>   if char 1 to 2 of line x of me is "!c"
>   then delete char 1 to 2 of line x of me
> end repeat
> put "!c" before line myItemNumber of me
> 
> put the currentCheckedLine of me into oldLine
> delete char 1 to 2 of line oldLine of me
> put "!c" before line myItemNumber of me
> set the currentCheckedLine of me to myItemNumber
> end menuPick
> 
> your help is appreciated
> 
> moe
> 








More information about the use-livecode mailing list