Contextual Menus

J. Landman Gay jacque at hyperactivesw.com
Mon Jul 21 21:45:42 EDT 2008


J. Landman Gay wrote:

> If you just want to operate on the text, you can do things like "copy 
> the selection".
> 

Actually (she said, replying to herself) it's even easier than that. Rev 
already knows what's selected, so if you are just using the basic 
editing commands, all you need in a menupick is this:

on menupick pwhich
   switch pwhich
   case "copy"
     copy
     break
   case "paste"
     paste
     break
   case "delete"
     delete
    break
   default
   end switch
end menupick

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list