From 9939bfd98ba4e85bab7def962c74797d6f6fb527 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Nov 2010 23:48:30 +0000 Subject: [PATCH 1/1] Remove unused mouse event handler from dataview sample. The mouse event handler for the frame was never executed because the frame is entirely covered by other windows in this sample. Not sure what was meant here but this handler is useless so just remove it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/dataview.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 8556ca8e28..252cca4655 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -119,7 +119,6 @@ private: void OnContextMenu( wxDataViewEvent &event ); - void OnRightClick( wxMouseEvent &event ); void OnGoto( wxCommandEvent &event); void OnAddMany( wxCommandEvent &event); void OnHideAttributes( wxCommandEvent &event); @@ -359,8 +358,6 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) EVT_DATAVIEW_ITEM_DROP( ID_MUSIC_CTRL, MyFrame::OnDrop ) #endif // wxUSE_DRAG_AND_DROP - EVT_RIGHT_UP(MyFrame::OnRightClick) - EVT_DATAVIEW_COLUMN_HEADER_CLICK(ID_ATTR_CTRL, MyFrame::OnAttrHeaderClick) END_EVENT_TABLE() @@ -1089,12 +1086,6 @@ void MyFrame::OnSorted( wxDataViewEvent &event ) wxLogMessage( "wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED, Column position: %d", pos ); } -void MyFrame::OnRightClick( wxMouseEvent &event ) -{ - wxLogMessage( "wxEVT_MOUSE_RIGHT_UP, Click Point is X: %d, Y: %d", - event.GetX(), event.GetY() ); -} - void MyFrame::OnDataViewChar(wxKeyEvent& event) { if ( event.GetKeyCode() == WXK_DELETE ) -- 2.45.2