Hi,
Again me with another question about Reaction/Intuition.
Sorry for all these newby questions... It's my first Reaction project...
In my program i have to catch MouseX/MouseY where the user hit the RMB.
I do that without problem in WMHI_MOUSEBUTTONS / MENUDOWN. I can even use a popupmenu.
I only have to add WINDOW_GadgetHelp,TRUE and WA_RMBTrap, TRUE to my window.
It works, it's perfect !
Now, I try to replace my PopupMenu by a NewMenu to be able to add menu entry to the Workbench TitleBar BUT I have to remove WA_RMBTrap otherwise the NewMenu doesn't work at all.
By removing WA_RMBTrap and by using NewMenu, WMHI_MOUSEBUTTON doesn't work anymore. And unfortunately WMHI_MENUPICK seems to retrieve only the mouse coordinates AFTER RMB release.
Is somebody know how to :
1) to detect MouseX/MouseY when RMB is pressed when using NewMenu ?
OR
2) a way to add menus entries to the WB TitleBar when using PopupMenu ?
Here is the SDK sample where I tried to show the problem.
By uncommenting
and by commenting
the RMB coordinates will be retrieved as soon as RMB is pressed (print of "MENUDOWN MouseX") but NewMenu will not work
By commenting
and by uncommenting
the RMB coordinates will be retrieved only after RMB is released (print of "MENUPICK MouseX") but NewMenu will work
http://zzd10h.amiga-ng.org/Divers/Menu_Intuition.lha
Thank you by advance for your help
Guillaume
WINDOW_GadgetHelp,TRUE, WA_RMBTrap, TRUE,
//WA_NewLookMenus, TRUE, //WINDOW_NewMenu, mynewmenu,
// WINDOW_GadgetHelp,TRUE, // zzd10h // WA_RMBTrap, TRUE, // zzd10h
WA_NewLookMenus, TRUE, WINDOW_NewMenu, mynewmenu,