#include "wx/menu.h"
#include "wx/menuitem.h"
#include "wx/log.h"
+#include "wx/utils.h"
// other standard headers
// ----------------------
// TODO
}
-const wxString& wxMenu::GetTitle() const
+const wxString wxMenu::GetTitle() const
{
return m_title;
}
{
processed = GetEventHandler()->ProcessEvent(event);
}
-
+/* TODO
// Try the window the menu was popped up from (and up
// through the hierarchy)
if ( !processed && GetInvokingWindow())
processed = GetInvokingWindow()->ProcessEvent(event);
+*/
}
bool wxWindow::PopupMenu(wxMenu *menu, int x, int y)
// TODO
}
-wxMenuBar::wxMenuBar(int n, wxMenu *Mmnus[], const wxString titles[])
+wxMenuBar::wxMenuBar(int n, wxMenu *menus[], const wxString titles[])
{
m_eventHandler = this;
m_menuCount = n;
for (i = 0; i < m_menuCount; i++)
{
if (m_menus[i]->FindItemForId (Id))
- eturn wxString(m_menus[i]->GetHelpString (Id));
+ return wxString(m_menus[i]->GetHelpString (Id));
}
return wxString("");
}