git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37003
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- ::wxGetUserName() implemented.
- wxDisplay enumeration support.
- Fixed wxFileDialog breakage on WinCE due to incorrect structure size.
-- new wxSystemOption "wince.dialog.real-ok-cancel" to switch between WinCE
+- New wxSystemOption "wince.dialog.real-ok-cancel" to switch between WinCE
guidelines with Ok-only dialogs and dialogs using wxButtons.
+- Checkable items in wxToolMenuBarTool supported.
Unix:
wxToolBarToolBase *tool = FindById((int)id);
if ( !tool )
{
+ if (m_menuBar)
+ {
+ wxMenuItem *item = m_menuBar->FindItem(id);
+ if (item && item->IsCheckable())
+ {
+ item->Toggle();
+ }
+ }
+
wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED);
event.SetEventObject(this);
event.SetId(id);