Merge branch 'mac-search-menu-check'

Fix check items state in wxSearchCtrl menu under macOS.

See https://github.com/wxWidgets/wxWidgets/pull/2304
This commit is contained in:
Vadim Zeitlin
2021-04-04 17:04:18 +02:00
6 changed files with 43 additions and 25 deletions

View File

@@ -299,6 +299,11 @@ public:
// Return the DPI corresponding to the given scale factor.
static wxSize OSXMakeDPIFromScaleFactor(double scaleFactor);
#if wxUSE_MENUS
// Called on the invoking window after handling the menu event.
virtual void OSXAfterMenuEvent() { }
#endif // wxUSE_MENUS
protected:
// For controls like radio buttons which are genuinely composite
wxList m_subControls;