> >
> Hi there, > > 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 [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
