class wxMacToolTipTimer : wxTimer
{
public:
+ wxMacToolTipTimer() {} ;
wxMacToolTipTimer(wxMacToolTip* tip, int iMilliseconds) ;
-
+ virtual ~wxMacToolTipTimer() {} ;
void Notify()
{
if ( m_mark == m_tip->GetMark() )
m_tip->Draw() ;
}
-
protected:
wxMacToolTip* m_tip;
long m_mark ;
{
m_mark++ ;
Clear() ;
- m_position = localPosition ;
+ m_position = localPosition ;
m_label = wxMacMakeMacStringFromPC( text ) ;
m_window = window ;
s_ToolTipWindowRef = window ;
*/
#endif
{
- wxMacPortStateHelper help( GetWindowPort( m_window ) );
+ wxMacPortStateHelper help( (GrafPtr) GetWindowPort( m_window ) );
m_shown = true ;
void wxMacToolTip::Clear()
{
m_mark++ ;
+ if ( m_timer )
+ {
+ delete m_timer ;
+ m_timer = NULL ;
+ }
if ( !m_shown )
return ;
if ( m_window == s_ToolTipWindowRef && m_backpict )
{
- wxMacPortStateHelper help( GetWindowPort(m_window) ) ;
+ wxMacPortStateHelper help( (GrafPtr) GetWindowPort(m_window) ) ;
m_shown = false ;