]> git.saurik.com Git - wxWidgets.git/commitdiff
workaround for notebook/tabctrl redraw bug, it is now not excluded from the local...
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 May 2001 12:46:51 +0000 (12:46 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 May 2001 12:46:51 +0000 (12:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/control.cpp
src/mac/carbon/window.cpp
src/mac/control.cpp
src/mac/window.cpp

index df3790521ac6fdc21f547c9c520369da1dbe313d..8268b03c8bd330f30ab81154a84394cfbe15087e 100644 (file)
@@ -664,8 +664,9 @@ void wxControl::OnPaint(wxPaintEvent& event)
                                wxMacDrawingHelper help( win ) ;
                                // the mac control manager always assumes to have the origin at 0,0
                                SetOrigin( 0 , 0 ) ;
+
                                
-                               bool                    hasTabBehind = false ;
+                               bool hasTabBehind = false ;
                                wxWindow* parent = GetParent() ;
                                while ( parent )
                                {
@@ -684,7 +685,7 @@ void wxControl::OnPaint(wxPaintEvent& event)
                                        
                                        parent = parent->GetParent() ;
                                } 
-                               
+
                                UMADrawControl( m_macControl ) ;
                                UMASetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
                        }
index 7acae31b6c51e62dabbf9bf88a88851e8003f7dc..644bf7e7372fb8bcd8980dd3ad44767986c7e034 100644 (file)
@@ -1847,8 +1847,11 @@ void wxWindow::MacRedraw( RgnHandle updatergn , long time)
                        // eventually test for transparent windows
                        if ( child->GetMacRootWindow() == window && child->IsShown() )
                        {
-                           SetRectRgn( childarea , child->m_x , child->m_y , child->m_x + child->m_width ,  child->m_y + child->m_height ) ;
-                           DiffRgn( ownUpdateRgn , childarea , ownUpdateRgn ) ;
+                           if ( !child->IsKindOf( CLASSINFO( wxNotebook ) ) && !child->IsKindOf( CLASSINFO( wxTabCtrl ) ) )
+                           {
+                               SetRectRgn( childarea , child->m_x , child->m_y , child->m_x + child->m_width ,  child->m_y + child->m_height ) ;
+                               DiffRgn( ownUpdateRgn , childarea , ownUpdateRgn ) ;
+                           }
                        }
                }               
                DisposeRgn( childarea ) ;
index df3790521ac6fdc21f547c9c520369da1dbe313d..8268b03c8bd330f30ab81154a84394cfbe15087e 100644 (file)
@@ -664,8 +664,9 @@ void wxControl::OnPaint(wxPaintEvent& event)
                                wxMacDrawingHelper help( win ) ;
                                // the mac control manager always assumes to have the origin at 0,0
                                SetOrigin( 0 , 0 ) ;
+
                                
-                               bool                    hasTabBehind = false ;
+                               bool hasTabBehind = false ;
                                wxWindow* parent = GetParent() ;
                                while ( parent )
                                {
@@ -684,7 +685,7 @@ void wxControl::OnPaint(wxPaintEvent& event)
                                        
                                        parent = parent->GetParent() ;
                                } 
-                               
+
                                UMADrawControl( m_macControl ) ;
                                UMASetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
                        }
index 7acae31b6c51e62dabbf9bf88a88851e8003f7dc..644bf7e7372fb8bcd8980dd3ad44767986c7e034 100644 (file)
@@ -1847,8 +1847,11 @@ void wxWindow::MacRedraw( RgnHandle updatergn , long time)
                        // eventually test for transparent windows
                        if ( child->GetMacRootWindow() == window && child->IsShown() )
                        {
-                           SetRectRgn( childarea , child->m_x , child->m_y , child->m_x + child->m_width ,  child->m_y + child->m_height ) ;
-                           DiffRgn( ownUpdateRgn , childarea , ownUpdateRgn ) ;
+                           if ( !child->IsKindOf( CLASSINFO( wxNotebook ) ) && !child->IsKindOf( CLASSINFO( wxTabCtrl ) ) )
+                           {
+                               SetRectRgn( childarea , child->m_x , child->m_y , child->m_x + child->m_width ,  child->m_y + child->m_height ) ;
+                               DiffRgn( ownUpdateRgn , childarea , ownUpdateRgn ) ;
+                           }
                        }
                }               
                DisposeRgn( childarea ) ;