- menubarMenu->Append(Menu_MenuBar_GetLabel, "&Get menu label\tCtrl-G",
- "Get the label of the last menu");
- menubarMenu->Append(Menu_MenuBar_SetLabel, "&Set menu label\tCtrl-S",
- "Change the label of the last menu");
+ menubarMenu->Append(Menu_MenuBar_GetLabel, _T("&Get menu label\tCtrl-G"),
+ _T("Get the label of the last menu"));
+#if wxUSE_TEXTDLG
+ menubarMenu->Append(Menu_MenuBar_SetLabel, _T("&Set menu label\tCtrl-S"),
+ _T("Change the label of the last menu"));
+ menubarMenu->AppendSeparator();
+ menubarMenu->Append(Menu_MenuBar_FindMenu, _T("&Find menu from label\tCtrl-F"),
+ _T("Find a menu by searching for its label"));
+#endif
+
+ wxMenu* subMenu = new wxMenu;
+ subMenu->Append(Menu_SubMenu_Normal, _T("&Normal submenu item"), _T("Disabled submenu item"));
+ subMenu->AppendCheckItem(Menu_SubMenu_Check, _T("&Unchecked submenu item"), _T("Unchecked submenu item"));
+ subMenu->AppendRadioItem(Menu_SubMenu_Radio1, _T("Radio item &1"), _T("Radio item"));
+ subMenu->AppendRadioItem(Menu_SubMenu_Radio2, _T("Radio item &2"), _T("Radio item"));
+ subMenu->AppendRadioItem(Menu_SubMenu_Radio3, _T("Radio item &3"), _T("Radio item"));
+
+ menubarMenu->Append(Menu_SubMenu, _T("Submenu"), subMenu);