Page 1 of 1

Right-click event in StringGadget?

Posted: Tue May 12, 2020 5:49 pm
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?

Re: Right-click event in StringGadget?

Posted: Wed May 13, 2020 6:26 am
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?

Re: Right-click event in StringGadget?

Posted: Wed May 13, 2020 5:21 pm
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!