adding edit menu in order to be able to support native edit menu commands (osx)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-16 18:51:15 +00:00
parent fbbe829a19
commit b9c22bca90

View File

@@ -539,8 +539,23 @@ bool MyApp::OnInit()
menuHelp->Append(DIALOGS_ABOUTDLG_CUSTOM, wxT("About (&custom)...\tCtrl-Shift-F1"));
#endif // wxUSE_ABOUTDLG
wxMenu* editMenu = new wxMenu;
editMenu->Append(wxID_UNDO, _("&Undo\tCtrl+Z"));
editMenu->Append(wxID_REDO, _("&Redo\tCtrl+Y"));
editMenu->AppendSeparator();
editMenu->Append(wxID_CUT, _("Cu&t\tCtrl+X"));
editMenu->Append(wxID_COPY, _("&Copy\tCtrl+C"));
editMenu->Append(wxID_PASTE, _("&Paste\tCtrl+V"));
editMenu->Append(wxID_CLEAR, _("&Delete"));
editMenu->AppendSeparator();
editMenu->Append(wxID_SELECTALL, _("Select All\tCtrl+A"));
wxMenuBar *menubar = new wxMenuBar;
menubar->Append(menuDlg, wxT("&Dialogs"));
menubar->Append(editMenu, wxT("&Edit"));
#if wxUSE_ABOUTDLG
menubar->Append(menuHelp, wxT("&Help"));
#endif // wxUSE_ABOUTDLG