]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/tooltip.cpp
Implemented wxStaticLine under Mac. I thought I had
[wxWidgets.git] / src / mac / carbon / tooltip.cpp
index 583bd9b8928fc278f9b2de31eb83e03bacdd886b..5974c8808e31505f4448cca2fe1e775eaa0a57b6 100644 (file)
 
 #if wxUSE_TOOLTIPS
 
 
 #if wxUSE_TOOLTIPS
 
+#include "wx/app.h"
 #include "wx/window.h"
 #include "wx/tooltip.h"
 #include "wx/window.h"
 #include "wx/tooltip.h"
+#include "wx/timer.h"
 #include "wx/geometry.h"
 #include "wx/mac/aga.h"
 #include "wx/mac/uma.h"
 #include "wx/geometry.h"
 #include "wx/mac/aga.h"
 #include "wx/mac/uma.h"
@@ -293,6 +295,7 @@ void wxMacToolTip::Draw()
                                        
                ::DrawText( text , laststop , i - laststop ) ;
                ::TextMode( srcOr ) ;
                                        
                ::DrawText( text , laststop , i - laststop ) ;
                ::TextMode( srcOr ) ;
+               wxDC::MacInvalidateSetup() ;
                
        //      DrawText( m_label , 0 , m_label.Length() ) ;
        }
                
        //      DrawText( m_label , 0 , m_label.Length() ) ;
        }
@@ -327,6 +330,7 @@ void wxMacToolTip::Clear()
                DrawPicture(m_backpict, &m_rect);
                KillPicture(m_backpict);
                m_backpict = NULL ;
                DrawPicture(m_backpict, &m_rect);
                KillPicture(m_backpict);
                m_backpict = NULL ;
+               wxDC::MacInvalidateSetup() ;
        }
 }
 
        }
 }