Community
Participate
Working Groups
- run the ControlExample, Button tab - turn on listeners MouseDown and MenuDetect - right-mouse-down on an example Button -> on motif and gtk you'll get MenuDetect - MouseDown -> on win32 you'll get MouseDown - MenuDetect
This isn't a bug. On Windows, the context menu is displayed when the mouse is released. Is there something I am missing?
Zillbuggahhhh!
The report is referring to the linux behaviours, that MenuDetect fires before the event that triggered it (the MouseDown). This is similar to the example that Car gave of Selection firing before MouseDown.
Got it.
I've looked into this on motif, and it seems unfixable because: - all mouse event fires go through Control.sendMouseEvent(), which does a post (in this context of the MouseDown) - the MenuDetect cannot be posted because it immediately does a doit=true check, hence it comes in before the posted MouseDown does SN do you remember the history of why all mouse events are posted? For that matter, this would probably be too fundamental and wide-reaching a change to consider anyways, no?
the gtk case is the exact same
Vikki is investigating this area for drag and drop. I believe we can change it but we need to be careful. The idea that I have is to post events for canvas (where it doesn't matter) and send them for operating system widgets.
dup *** This bug has been marked as a duplicate of 79925 ***