Old 03-01-2011, 10:54 PM   #1
joost
Human being with feelings
 
Join Date: Dec 2010
Posts: 16
Default Adding menu item to pop up menus

The coding examples describe how one can add a menu item using the main hwnd. Is there a way to add a menu item to one of the pop up menus? E.g., can I add to the pop up that shows when right clicking a midi track? Can I override the double (left) click on a midi track?

joost
joost is offline   Reply With Quote
Old 03-02-2011, 08:11 AM   #2
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

You have to catch "Track control panel context" in your menuhook (the way to handle menus from the API, not to break users' customizations). Tim shows you how to do that here: http://code.google.com/p/sws-extensi...shots.cpp#1007
In v3, you can't (properly) override the double-click behavior but a REAPER pre-release introduces mouse modifiers and the ability for the user to customize that, i.e. setting any action (including extension ones) for double-click or whatever. Details here: http://forum.cockos.com/showthread.php?t=69728
Jeffos is offline   Reply With Quote
Old 03-02-2011, 08:30 AM   #3
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

Jeffos - does this concept make all context menus renameable, even those not directly approachable by Reaper's built-in menu customization utility?


That would be awesome for translating menus which can't be translated currently.
EvilDragon is offline   Reply With Quote
Old 03-02-2011, 08:44 AM   #4
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Without hacks, no: the API only gives you access to some (*) menus and the ones we have access to are already customizable.
The few menus we have access to are the most important ones, though.

(*) well.. except if there are other magic hook strings (like "Track control panel context" above) that I'm not aware of..
Jeffos is offline   Reply With Quote
Old 03-02-2011, 08:45 AM   #5
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

Damn.


Really, it would be nice to have ALL the context menus editable, or at least translatable.
EvilDragon is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:06 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.