+void MyFrame::LogMenuEvent(const wxCommandEvent& event)
+{
+ int id = event.GetId();
+ wxString msg = wxString::Format("Menu command %d", id);
+ if ( GetMenuBar()->FindItem(id)->IsCheckable() )
+ {
+ msg += wxString::Format(" (the item is currently %schecked)",
+ event.IsChecked() ? "" : "not ");
+ }
+
+ SetStatusText(msg, 1);
+}
+
+// ----------------------------------------------------------------------------
+// menu callbacks
+// ----------------------------------------------------------------------------
+