Make wxEVT_MENU_HIGHLIGHT generation when there is no highlighted item
consistent across all the major ports: use wxID_NONE instead of wxID_ANY
in wxGTK and send these events, which were previously not sent at all in
this case, in wxOSX.

See https://github.com/wxWidgets/wxWidgets/pull/1637
This commit is contained in:
Vadim Zeitlin
2019-11-05 20:03:36 +01:00
6 changed files with 20 additions and 7 deletions

View File

@@ -31,8 +31,10 @@
A menu has been just closed.
This type of event is sent as wxMenuEvent.
@event{EVT_MENU_HIGHLIGHT(id, func)}
The menu item with the specified id has been highlighted: used to show
help prompts in the status bar by wxFrame
The menu item with the specified id has been highlighted. If the id is
::wxID_NONE, highlighting has been removed from the previously
highlighted menu item and there is no highlighted item any more.
This is used by wxFrame to show help prompts in the status bar.
This type of event is sent as wxMenuEvent.
@event{EVT_MENU_HIGHLIGHT_ALL(func)}
A menu item has been highlighted, i.e. the currently selected menu item has changed.