Check Menu Items?

yves COPPE yvescoppe at skynet.be
Sun Apr 21 12:12:01 EDT 2002


>
>The !c checkmarks the menuitem, but I need to have this
>done dynamically depending on which item the user selects.
>The checkmark doesn't go on and off accordingly.  Have I
>missed something?  Where in the documentation did you find
>this little nugget?
>
>Thanks,
>
>Rick Harrison
>


try :

   put text of me into tMenu
   get the menuHistory of me
   if char 1 of line it of tMenu = "!" then
     repeat 2
       delete char 1 of line it of tMenu
     end repeat
   else
     put "!c" before line it of tMenu
   end if
   set text of me to tMenu

I've done it so and it works.
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list