Context Menus - the look of the thing

J. Landman Gay jacque at hyperactivesw.com
Thu May 9 15:18:45 CDT 2013


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         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list