My pop up menu deselects my text...
kray at sonsothunder.com
Fri Feb 13 13:24:49 CST 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
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:
if the controlKey is down then
popup btn "Popper" at the mouseLoc
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.
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