Contextual menu trouble
John Dixon
dixonja at hotmail.co.uk
Tue Jan 18 07:28:07 EST 2011
You might try.... in the script of a field, with the 'lockText' set to true
on mouseDown
if the menuMouseButton of button 1 = 1 then
popUp button 1
end if
end mouseDown
be well
> > I am working on a contextual menu in a textfield.
> > I searched this list, the forum on Runrev and used the Dictionary.
> > Everything works: I get a right click in a field but nothing happens
> > after I choose the contextual menu.
> > Am I missing something?
> >
> >
> > In a field:
> > on mouseDown theMouseButton
> > if theMouseButton is 3 then
> > popup button "popup"
> > else
> > pass mouseDown
> > end if
> > end mouseDown
> >
> > on mouseUp theMouseButton
> > if theMouseButton is 3 then
> > popup button "popup"
> > else
> > pass mouseUp
> > end if
> > end mouseUp
> >
> > Button "popup":
> > on menuPick pItemName
> > switch pItemName
> > case "Cut"
> > cut
> > break
> > case "Copy"
> > copy
> > break
> > case "Paste"
> > paste
> > break
> > end switch
> > end menuPick
> >
> > Greetings,
> >
> > William
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list