Checkable items in wxToolMenuBarTool supported.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,8 +127,9 @@ wxWinCE:
|
||||
- ::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:
|
||||
|
||||
|
@@ -491,6 +491,15 @@ bool wxToolMenuBar::MSWCommand(WXUINT WXUNUSED(cmd), WXWORD id)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user