From: Julian Smart Date: Sun, 23 Jun 2002 13:38:50 +0000 (+0000) Subject: Applied [ 565397 ] FL wxNewBitmapButton patch X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/45d6fd80b3be6e3f5e0532b06c008f700ba5606b Applied [ 565397 ] FL wxNewBitmapButton patch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/contrib/include/wx/fl/newbmpbtn.h b/contrib/include/wx/fl/newbmpbtn.h index fac871be73..9992849bf0 100644 --- a/contrib/include/wx/fl/newbmpbtn.h +++ b/contrib/include/wx/fl/newbmpbtn.h @@ -176,9 +176,6 @@ public: // Responds to a left mouse button up event. void OnLButtonUp( wxMouseEvent& event ); - // Responds to a left mouse button double click. - void OnLButtonDClick( wxMouseEvent& event ); - // Responds to mouse enter to window. void OnMouseEnter( wxMouseEvent& event ); diff --git a/contrib/src/fl/newbmpbtn.cpp b/contrib/src/fl/newbmpbtn.cpp index 138e9cf1c6..740bf206d8 100644 --- a/contrib/src/fl/newbmpbtn.cpp +++ b/contrib/src/fl/newbmpbtn.cpp @@ -210,7 +210,8 @@ BEGIN_EVENT_TABLE( wxNewBitmapButton, wxPanel ) EVT_LEFT_DOWN ( wxNewBitmapButton::OnLButtonDown ) EVT_LEFT_UP ( wxNewBitmapButton::OnLButtonUp ) - EVT_LEFT_DCLICK ( wxNewBitmapButton::OnLButtonDClick ) +// EVT_LEFT_DCLICK ( wxNewBitmapButton::OnLButtonDClick ) + EVT_LEFT_DCLICK ( wxNewBitmapButton::OnLButtonDown ) EVT_ENTER_WINDOW( wxNewBitmapButton::OnMouseEnter ) EVT_LEAVE_WINDOW( wxNewBitmapButton::OnMouseLeave ) @@ -676,21 +677,6 @@ void wxNewBitmapButton::OnLButtonUp( wxMouseEvent& event ) } } -void wxNewBitmapButton::OnLButtonDClick( wxMouseEvent& event ) -{ - if ( IsInWindow( event.m_x, event.m_y ) ) - { - // fire event, if mouse was released - // within the bounds of button - wxCommandEvent cmd( mFiredEventType, GetId() ); - GetParent()->ProcessEvent( cmd ); - - mDragStarted = FALSE; - mIsPressed = FALSE; - Refresh(); - } -} - bool wxNewBitmapButton::IsInWindow( int x, int y ) { int width, height;