Eric,
That did it.
Note there is no UI in the Properties of a button to set traversalOn.
I had to do it from the message box. Not obvious for a beginner.
One last question... How do I refer to the calling object (in this
case the field) to send the action to? Lets say I have multiple fields
that I want to use this for so I want to cut the selected text in the
field I right clicked in. The menuPick handler is in the button.
Thank you,
Bill
On Jul 21, 2008, at 2:37 AM, Eric Chatonet wrote:
Bonjour Bill,
To not loose the focus in the field, just set the traversalOn of the
button to false :-)
Le 21 juil. 08 à 03:06, Bill Vlahos a écrit :
Thanks Eric.
I've added the following script to a field:
on mouseDown pButton
if pButton = 3 then
put "Cut" & return & "Copy" & return & "Paste" into tMenu
put tMenu into button "b1"
popup btn "b1"
end if
end mouseDown
This didn't do anything until I also added a button (which can be
hidden) called "b1". The button has a menuPick handler which
correctly responds to the menu item selected.
However the text that had been selected in the field is deselected
when the popup menu pops up so the menuPick item doesn't have
anything to work with. An example would be to copy the text so I
need the originally selected text to work with.
What am I missing?
Bill Vlahos
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution