My pop up menu deselects my text...
MisterX
b.xavier at internet.lu
Fri Feb 13 13:50:56 EST 2004
try this...
local lastsel
on mouseenter
put the selectedchunk into lastsel
pass mouseenter
end mouseenter
on menupick x
bla bla bla
do "select" && lastsel
end menupick
you owe me a beer now! ;)
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of m
> Sent: Friday, February 13, 2004 19:26
> To: use-revolution at lists.runrev.com
> Subject: My pop up menu deselects my text...
>
>
> I am trying to create a context pop up menu that allows you to simply
> copy text.
>
> Problem: the popup command works just fine, but as soon as my menu
> pops up, my selected text is deselected.
>
> I have a goofy work around right now where I just throw the selected
> text into a container and then change its color (so you know what was
> highlighted) before popping up the context menu.
>
> But I need to be able to pop up the menu while keeping my text selected
> (like all word processors do).
>
> What am I missing?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list