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
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user