+void wxFrame::OnMenuHighlight(wxMenuEvent& event)
+{
+ if (GetStatusBar())
+ {
+ if (event.GetMenuId() == -1)
+ {
+ SetStatusText("");
+ }
+ else
+ {
+ wxMenuBar *menuBar = GetMenuBar();
+ if (menuBar)
+ {
+ int menuId = event.GetMenuId();
+ wxString helpString;
+ helpString = menuBar->GetHelpString(menuId);
+ if (helpString != "")
+ SetStatusText(helpString);
+ }
+ }
+ }
+}
+