Right-click events for StringGadget / EditorGadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Right-click events for StringGadget / EditorGadget

Post 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.
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Right-click events for StringGadget / EditorGadget

Post by Fred »

It should already display the standard OS menu with cut/copy paste and such, no ?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Right-click events for StringGadget / EditorGadget

Post 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. :)
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Right-click events for StringGadget / EditorGadget

Post 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.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Right-click events for StringGadget / EditorGadget

Post 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.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Right-click events for StringGadget / EditorGadget

Post by collectordave »

+1

Would be nice
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Right-click events for StringGadget / EditorGadget

Post by BarryG »

+1
Ulix
User
User
Posts: 48
Joined: Wed Jan 23, 2008 12:45 pm
Location: France, Montpellier

Re: Right-click events for StringGadget / EditorGadget

Post by Ulix »

+1

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