MSW: wxEVT_MENU_HIGHLIGHTshould be sent to the menu owner, not parent frame
|Reported by:||daumling||Owned by:|
Currently, only the frame window message handler handles a WM_MENUSELECT message. This makes it difficult for popup menus on other windows to display help text. IMHO, the generic window message handler should handle this event as well so any window can have a handler for the wxEVT_MENU_HIGHLIGHT handler.
A workaround is possible. Have the main frame display the context menu at the right position, but bind the wxEVT_COMMAND_MENU_SELECTED event to the owning window (the one that opened the popup menu) before so the owning window can handle the commands. In that case, the owning window must also handle message bubbling, though.
Change History (14)
comment:1 follow-up: ↓ 2 Changed 3 years ago by vadz
- Keywords simple added
- Status changed from new to confirmed
- Summary changed from MSW: WM_MENUSELECT should have a general event handler to handle popup menus to MSW: wxEVT_MENU_HIGHLIGHTshould be sent to the menu owner, not parent frame
comment:2 in reply to: ↑ 1 ; follow-up: ↓ 3 Changed 15 months ago by catalin
- Priority changed from low to normal
- Version set to 2.9-svn