I didn't know mouse events were handled in an unlocked field! Nice to know.
Curiously however, in that handler I substituted a put statement for the popup command using send "put " & quote & "this worked" & quote to me in 2 seconds In two seconds I get "worked" not "this worked" in the message box. Bob S > On Jun 1, 2022, at 11:40 , Klaus major-k via use-livecode > <[email protected]> wrote: > > Hi Peter, > >> Am 01.06.2022 um 20:34 schrieb Peter Bogdanoff via use-livecode >> <[email protected]>: >> >> Hi, >> >> I’m wanting to implement a right click (button 3) in an unlocked desktop >> field to show a pop up menu. >> How would I do this? > > on mousedown tNumber > ## mousebutton 3 = right-click > if tNumber = 3 then > popup btn "your popup here..." at the mouseloc > end if > end mousedown > >> Is the menu that would show Livecode, or from the OS? > > That will popup a LC popup menu button. > >> Thanks, >> >> Peter Bogdanoff > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > [email protected] > > > _______________________________________________ > 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 _______________________________________________ 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
