if (m_menuWidget)
{
// this is a dynamic Append
- pItem->CreateItem(m_menuWidget, m_menuBar, m_topLevelMenu);
+ pItem->CreateItem(m_menuWidget, GetMenuBar(), m_topLevelMenu);
}
if ( pItem->IsSubMenu() )
menu->SetButtonWidget(w);
}
- //menu->SetMenuBar(this);
-
m_titles.Add(title);
return wxMenuBarBase::Append(menu, title);
m_menuWidget = (WXWidget) menu;
- m_menuBar = menuBar;
m_topLevelMenu = topMenu;
for ( wxMenuItemList::compatibility_iterator node = GetMenuItems().GetFirst();