My pop up menu deselects my text...
Ken Ray
kray at sonsothunder.com
Fri Feb 13 14:24:49 EST 2004
Well, I don't know exactly your code, but I whipped up a quick example
that works... maybe you can pull it apart and apply it to your
situation.
1) I created an option button with three items in it (Cut, Copy, Paste)
2) I created a field to hold the text and typed some text in it
3) I put this script in the field:
on mouseDown
if the controlKey is down then
popup btn "Popper" at the mouseLoc
end if
end mouseDown
When I selected some text and control-clicked, the popup menu appeared;
I selected an item and released and the menu disappeared and the text
was still selected.
HTH,
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----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 12:26 PM
> 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 it's 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