Page 1 of 1
Getting right mouse events in windows with a menu bar
Posted: Sun May 03, 2015 11:57 am
by softwarefailure
Is there a convenient way to get right mouse button events (i.e. MENUDOWN and MENUUP) in windows with a menu bar? Currently, I need to set WA_RMBTrap to catch those events but then menus don't work any more and without WA_RMBTrap menus work, but I don't get RMB events.
Re: Getting right mouse events in windows with a menu bar
Posted: Sun May 03, 2015 1:15 pm
by thomasrapp
Set WFLG_RMPTRAP dynamically depending on mouse position (use WFLG_REPORTMOUSE and IDCMP_MOUSEMOVE).
Re: Getting right mouse events in windows with a menu bar
Posted: Mon May 04, 2015 12:52 am
by broadblues
@Thomas
Yes indeed, that's exactly what PPaint does, the RMB trapped everywhere except when directly over the menu bar.
Re: Getting right mouse events in windows with a menu bar
Posted: Thu May 07, 2015 9:56 pm
by softwarefailure
Thanks, that does the trick.