build a context menu

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Bquentin
Posts: 8
Joined: Tue Jan 24, 2012 2:16 pm
Operating System: Please select

Re: build a context menu

Post by Bquentin » Wed Apr 04, 2012 2:45 pm

Thanks per advance !
Quentin

steve
Site Admin
Posts: 80678
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: build a context menu

Post by steve » Thu Apr 05, 2012 2:42 am

Very interesting.
The pop-up menu on Right Click works some of the time.

It builds OK but there's a warning during "make":

Code: Select all

TrackPanel.cpp: In member function ‘virtual bool TrackPanel::HandleTrackLocationMouseEvent(WaveTrack*, wxRect&, wxMouseEvent&)’:
TrackPanel.cpp:5018: warning: unused variable ‘bResult’
popup.png
popup.png (13.12 KiB) Viewed 1985 times
A couple of small issues:
1) For English keyboards the shortcut for "Redo" should be shift + Ctrl +Z
2) The keyboard shortcut for Play and Stop is the spacebar (Space), but as shown in the screenshot these are not listed.
3) Sometimes the pop-up does not pop-up (though if I use "left click" and then re-try the right-click it may pop up).

A more serious problem is that sometimes mouse clicks stops working altogether (left click and right click). I can't help with that one.

I'd imagine that some users would find this feature useful, though personally I don't think that I would use it as all of the actions are easily accomplished from the keyboard.

Making use of right click is quite a common request, but I don't think that everyone agrees about what right click should be used for.
As a "proof of concept" this certainly works.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Bquentin
Posts: 8
Joined: Tue Jan 24, 2012 2:16 pm
Operating System: Please select

Re: build a context menu

Post by Bquentin » Thu Apr 05, 2012 10:31 am

Thanks for spending times to try my patch, and your comments. it will help me.

Quentin.

Post Reply