martyknapp at comcast.net
Thu Jul 24 01:55:31 EDT 2008
I've done this using the target function and a mouseDown handler in a
card or stack script.
> OK. So with the help of a few great people on this list I now can do
> popup contextual menus for fields. Thank you.
> A user suggested that pretty much every field (regular text field)
> should be able to have a contextual menu for Cut, Copy, and Paste at a
> How would I add this feature to all my editable fields? I can do them
> one at a time but that would be pretty tedious. There must be a more
> global way to do it.
> On Jul 21, 2008, at 6:45 PM, J. Landman Gay wrote:
>> 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"
>> case "paste"
>> case "delete"
>> end switch
>> end menupick
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode