Right-click event in StringGadget?

Mac OSX specific forum
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Right-click event in StringGadget?

Post by WilliamL »

I've got a stringgadget that I would like to click on so I can 'toggle' the info in it. Like go from sVisa to SVisa. The only way I can think to accomplish that without interferring with the ability to type text is to get a right-click event from the stringgadget.

Is there any way to get a right-click event from the StringGadget?
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Right-click event in StringGadget?

Post by Shardik »

WilliamL wrote:Is there any way to get a right-click event from the StringGadget?
Have you already taken a look into my examples in this thread?
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Right-click event in StringGadget?

Post by WilliamL »

Hey Shardik,

I guess I should have done a search for right-clicking a string gadget!

Your many examples work fine and viewtopic.php?f=13&t=66532#p494032 gives me the gadget being clicked on (which I need). The coding is impressive and makes my head hurt so I will have to study it for a while. Of course, the first thing I did, since I'm on a laptop, was to do a control+click to replicate a right-click and it didn't work. Since I also have a trackball with a right-click button I was able to have a right-click button which works fine. It will take some time to go thru the examples and see how I can get the gadget number with the least amount of code.

I'm pondering the headaches this (cntr+click=right-click) has given Fred.

Thanks for your hard work!
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
Post Reply