Page 2 of 2

Re: build a context menu

Posted: Wed Apr 04, 2012 2:45 pm
by Bquentin
Thanks per advance !
Quentin

Re: build a context menu

Posted: Thu Apr 05, 2012 2:42 am
by steve
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 1987 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.

Re: build a context menu

Posted: Thu Apr 05, 2012 10:31 am
by Bquentin
Thanks for spending times to try my patch, and your comments. it will help me.

Quentin.