From: David Elliott Date: Wed, 20 Oct 2004 19:24:14 +0000 (+0000) Subject: Added some accelerators to the menu to help with stress testing wxSound: X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b320510f986f52be5f4b436383e3c889e8f814e4 Added some accelerators to the menu to help with stress testing wxSound: Ctrl+O Select WAV file Ctrl+S "Play sound synchronously" Ctrl+A "Play sound asynchronously" Ctrl+T "Play sound asynchronously (object on stack)" (T for temporary) Ctrl+L "Loop sound" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/sound/sound.cpp b/samples/sound/sound.cpp index b54f01f994..7ddb31f564 100644 --- a/samples/sound/sound.cpp +++ b/samples/sound/sound.cpp @@ -164,12 +164,12 @@ MyFrame::MyFrame(const wxString& title) wxMenu *helpMenu = new wxMenu; wxMenu *playMenu = new wxMenu; helpMenu->Append(Sound_About, _T("&About...\tF1"), _T("Show about dialog")); - menuFile->Append(Sound_SelectFile, _T("&Select WAV file"), _T("Select a new wav file to play")); + menuFile->Append(Sound_SelectFile, _T("&Select WAV file\tCtrl+O"), _T("Select a new wav file to play")); menuFile->Append(Sound_Quit, _T("E&xit\tAlt-X"), _T("Quit this program")); - playMenu->Append(Sound_PlaySync, _T("Play sound &synchronously")); - playMenu->Append(Sound_PlayAsync, _T("Play sound &asynchronously")); - playMenu->Append(Sound_PlayAsyncOnStack, _T("Play sound asynchronously (&object on stack)")); - playMenu->Append(Sound_PlayLoop, _T("&Loop sound")); + playMenu->Append(Sound_PlaySync, _T("Play sound &synchronously\tCtrl+S")); + playMenu->Append(Sound_PlayAsync, _T("Play sound &asynchronously\tCtrl+A")); + playMenu->Append(Sound_PlayAsyncOnStack, _T("Play sound asynchronously (&object on stack)\tCtrl+T")); + playMenu->Append(Sound_PlayLoop, _T("&Loop sound\tCtrl+L")); // now append the freshly created menu to the menu bar... wxMenuBar *menuBar = new wxMenuBar();