On 5/9/13 2:54 PM, Graham Samuel wrote:
What I want is a single 'mouseDown' handler in my mainstack
that checks if the right mouse button had been pressed in an editable
field and then provides Edit-menu type services to that field (the
target). Could I use a button menu for that?
Sure, easily.
Create an option button and put the menu you want into its contents. Put
a corresponding menupick handler in its script. Hide the button.
In the field where you check for a right-click, just use "popup <name of
btn>". That's about it. The button script can either execute commands
directly ("copy", "paste") or it can call out to a custom handler in the
message path.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode