From 96aecfc900cf46a37eda895860314c494290af19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 1 Jun 2004 21:56:37 +0000 Subject: [PATCH] pop the menu up on mouse down, not up (this is more common behaviour in Windows and both GTK and Qt apps) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/taskbar/tbtest.cpp | 4 ++-- samples/taskbar/tbtest.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 44042da02f..5a8c024ac2 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -110,7 +110,7 @@ BEGIN_EVENT_TABLE(MyTaskBarIcon, wxTaskBarIcon) EVT_MENU(PU_RESTORE, MyTaskBarIcon::OnMenuRestore) EVT_MENU(PU_EXIT, MyTaskBarIcon::OnMenuExit) EVT_MENU(PU_NEW_ICON,MyTaskBarIcon::OnMenuSetNewIcon) - EVT_TASKBAR_RIGHT_UP (MyTaskBarIcon::OnRButtonUp) + EVT_TASKBAR_RIGHT_DOWN (MyTaskBarIcon::OnRButtonDown) EVT_TASKBAR_LEFT_DCLICK (MyTaskBarIcon::OnLButtonDClick) END_EVENT_TABLE() @@ -138,7 +138,7 @@ void MyTaskBarIcon::OnMenuSetNewIcon(wxCommandEvent&) } // Overridables -void MyTaskBarIcon::OnRButtonUp(wxEvent&) +void MyTaskBarIcon::OnRButtonDown(wxEvent&) { wxMenu menu; diff --git a/samples/taskbar/tbtest.h b/samples/taskbar/tbtest.h index 24ab1de7c8..4dac05ac65 100644 --- a/samples/taskbar/tbtest.h +++ b/samples/taskbar/tbtest.h @@ -14,7 +14,7 @@ class MyTaskBarIcon: public wxTaskBarIcon public: MyTaskBarIcon() {}; - void OnRButtonUp(wxEvent&); + void OnRButtonDown(wxEvent&); void OnLButtonDClick(wxEvent&); void OnMenuRestore(wxCommandEvent&); void OnMenuExit(wxCommandEvent&);