+ // Of course Ctrl+RatherLongAccel will not work in this example:
+ pAboutItem = new wxMenuItem(file_menu, Menu_About, wxT("&About\tCtrl+RatherLongAccel"),
+ wxT("display program information"), wxITEM_NORMAL);
+ pAboutItem->SetBitmap(bmpInfo);
+ pAboutItem->SetDisabledBitmap(bmpInfo_mono);
+ file_menu->Append(pAboutItem);
+
+ file_menu->AppendSeparator();
+#endif
+
+ pItem = new wxMenuItem(file_menu, Menu_Quit, wxT("&Quit"), wxT("Normal item"),
+ wxITEM_NORMAL);
+ file_menu->Append(pItem);
+
+ wxMenu* drawn_menu = new wxMenu;
+ pItem = new wxMenuItem(drawn_menu, Menu_Drawn1, wxT("&Menu item\tCtrl+K"));
+ drawn_menu->Append(pItem);
+
+ drawn_menu->AppendSeparator();
+
+ pItem = new wxMenuItem(drawn_menu, Menu_Drawn2, wxT("&Cheked item"),
+ wxT("check/uncheck me!"), wxITEM_CHECK);
+ drawn_menu->Append(pItem);
+ drawn_menu->Check(Menu_Drawn2, true);
+
+ pItem = new wxMenuItem(drawn_menu, Menu_Drawn3, wxT("&Radio item"),
+ wxT("check/uncheck me!"), wxITEM_RADIO);
+ drawn_menu->Append(pItem);
+
+ drawn_menu->AppendSeparator();
+
+ pItem = new wxMenuItem(drawn_menu, Menu_Drawn4, wxT("&Disabled item\tCtrl+RatherLongAccel"),
+ wxT("disabled item"));
+ pItem->Enable(false);
+ drawn_menu->Append(pItem);
+
+ pItem = new wxMenuItem(drawn_menu, Menu_Drawn5, wxT("&Other\tCtrl+O"), wxT("other item"));
+ pItem->SetTextColour(*wxRED);
+ drawn_menu->Append(pItem);
+
+ wxMenu* native_menu = new wxMenu;
+ pItem = new wxMenuItem(native_menu, Menu_Native1, wxT("&Menu item\tCtrl+K"));
+ native_menu->Append(pItem);
+
+ native_menu->AppendSeparator();
+
+ pItem = new wxMenuItem(native_menu, Menu_Native2, wxT("&Cheked item"),
+ wxT("check/uncheck me!"), wxITEM_CHECK);
+ native_menu->Append(pItem);
+ native_menu->Check(Menu_Native2, true);
+
+ pItem = new wxMenuItem(native_menu, Menu_Native3, wxT("&Radio item"),
+ wxT("check/uncheck me!"), wxITEM_RADIO);
+ native_menu->Append(pItem);
+
+ native_menu->AppendSeparator();
+
+ pItem = new wxMenuItem(native_menu, Menu_Native4, wxT("&Disabled item\tCtrl+RatherLongAccel"),
+ wxT("disabled item"));
+ pItem->Enable(false);
+ native_menu->Append(pItem);
+
+ pItem = new wxMenuItem(native_menu, Menu_Native5, wxT("&Other\tCtrl+O"), wxT("other item"));
+ native_menu->Append(pItem);
+