// global data
//-----------------------------------------------------------------------------
-class wxMacToolTipTimer ;
-
-class wxMacToolTip
-{
-public :
- wxMacToolTip() ;
- ~wxMacToolTip() ;
-
- void Setup( WindowRef window , const wxString& text , const wxPoint& localPosition ) ;
- void Draw() ;
- void Clear() ;
-
- long GetMark()
- { return m_mark ; }
-
- bool IsShown()
- { return m_shown ; }
-
-private :
- wxString m_label ;
- wxPoint m_position ;
- Rect m_rect ;
- WindowRef m_window ;
- PicHandle m_backpict ;
- bool m_shown ;
- long m_mark ;
-#if wxUSE_TIMER
- wxMacToolTipTimer* m_timer ;
-#endif
-#if TARGET_CARBON
- wxMacCFStringHolder m_helpTextRef ;
-#endif
-} ;
-
#if wxUSE_TIMER
class wxMacToolTipTimer : public wxTimer
{
s_ToolTipDelay = msecs ;
}
+void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(msecs) )
+{
+}
+
void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event )
{
if ( s_ShowToolTips )
wxMacLocalToGlobal( m_window , &p ) ;
SetRect( &tag.absHotRect , p.h - 2 , p.v - 2 , p.h + 2 , p.v + 2 );
- m_helpTextRef.Assign( m_label , wxFONTENCODING_DEFAULT ) ;
+ m_helpTextRef = wxCFStringRef( m_label , wxFONTENCODING_DEFAULT ) ;
tag.content[kHMMinimumContentIndex].contentType = kHMCFStringContent ;
tag.content[kHMMinimumContentIndex].u.tagCFString = m_helpTextRef ;
tag.content[kHMMaximumContentIndex].contentType = kHMCFStringContent ;
return ;
HMHideTag() ;
- m_helpTextRef.Release() ;
}
#endif // wxUSE_TOOLTIPS