From: Stefan Csomor Date: Wed, 8 May 2002 23:30:22 +0000 (+0000) Subject: added spinctrl to be ignored when clicked (otherwise its siblings on the same window... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4ac219f63d40983d417cabc09b2ed29c0f87c376?ds=inline added spinctrl to be ignored when clicked (otherwise its siblings on the same window position will not get the clicks) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 0708958546..a821346eef 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -35,6 +35,7 @@ #include "wx/tooltip.h" #include "wx/statusbr.h" #include "wx/menuitem.h" +#include "wx/spinctrl.h" #include "wx/log.h" #if wxUSE_CARET @@ -1397,7 +1398,7 @@ bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event) return FALSE; - if ( IsKindOf( CLASSINFO ( wxStaticBox ) ) ) + if ( IsKindOf( CLASSINFO ( wxStaticBox ) ) || IsKindOf( CLASSINFO( wxSpinCtrl ) )) return FALSE ; WindowRef window = (WindowRef) MacGetRootWindow() ; diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 0708958546..a821346eef 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -35,6 +35,7 @@ #include "wx/tooltip.h" #include "wx/statusbr.h" #include "wx/menuitem.h" +#include "wx/spinctrl.h" #include "wx/log.h" #if wxUSE_CARET @@ -1397,7 +1398,7 @@ bool wxWindowMac::MacDispatchMouseEvent(wxMouseEvent& event) return FALSE; - if ( IsKindOf( CLASSINFO ( wxStaticBox ) ) ) + if ( IsKindOf( CLASSINFO ( wxStaticBox ) ) || IsKindOf( CLASSINFO( wxSpinCtrl ) )) return FALSE ; WindowRef window = (WindowRef) MacGetRootWindow() ;