Page 1 of 1

Right-click events for StringGadget / EditorGadget

Posted: Wed Jan 24, 2018 4:33 am
by Dude
Just found out today that both StringGadget() and EditorGadget() do not support #PB_EventType_RightClick for events. :shock:

Can this please be added? I needed a pop-up menu to appear when these gadgets are right-clicked and had some real fun trying to work out why #PB_EventType_RightClick wasn't doing it... until I read in the manual that it's not actually supported for these gadgets. Blimey!

Surely this is an essential event? Everybody right-clicks a edit box and expects to get a context menu.

Re: Right-click events for StringGadget / EditorGadget

Posted: Wed Jan 24, 2018 10:35 am
by Fred
It should already display the standard OS menu with cut/copy paste and such, no ?

Re: Right-click events for StringGadget / EditorGadget

Posted: Wed Jan 24, 2018 12:23 pm
by Dude
Not for EditorGadgets. It never has shown a context menu (we've always had to code our own).

But it would be nice for us to be able to trap right-click events anyway, for other reasons. :)

Re: Right-click events for StringGadget / EditorGadget

Posted: Fri Jan 26, 2018 9:58 pm
by Shardik
Dude wrote:Not for EditorGadgets. It never has shown a context menu (we've always had to code our own).
In Linux and MacOS a right click into an EditorGadget already displays a context menu automatically. How to display it in Windows (and cross-platform) I have demonstrated already with screenshots in this posting.

Re: Right-click events for StringGadget / EditorGadget

Posted: Sat Jan 27, 2018 1:05 am
by Dude
I know we can code our own (I even said that above). But it would be nice to get right-click events anyway for it, so we can do other things than just show a menu.

Re: Right-click events for StringGadget / EditorGadget

Posted: Fri Feb 22, 2019 3:15 pm
by collectordave
+1

Would be nice

Re: Right-click events for StringGadget / EditorGadget

Posted: Tue Feb 04, 2020 8:15 am
by BarryG
+1

Re: Right-click events for StringGadget / EditorGadget

Posted: Tue Feb 04, 2020 4:48 pm
by Ulix
+1

with the choice to use the system menu, :? :
or to make your own menu ! :wink: