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
This commit is contained in:
parent
cdb501108b
commit
96aecfc900
@ -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;
|
||||
|
||||
|
@ -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&);
|
||||
|
Loading…
Reference in New Issue
Block a user