/////////////////////////////////////////////////////////////////////////////
-// Name: src/mac/carbon/tooltip.cpp
+// Name: src/osx/carbon/tooltip.cpp
// Purpose: wxToolTip implementation
// Author: Stefan Csomor
// Id: $Id$
#include "wx/window.h"
#include "wx/dc.h"
#include "wx/timer.h"
+ #include "wx/nonownedwnd.h"
#endif // WX_PRECOMP
#include "wx/geometry.h"
wxToolTip::wxToolTip( const wxString &tip )
{
m_text = tip;
- m_window = (wxWindow*) NULL;
+ m_window = NULL;
}
wxToolTip::~wxToolTip()
}
// --- mac specific
-#if wxUSE_TIMER
+#if wxUSE_TIMER
wxMacToolTipTimer::wxMacToolTipTimer( wxMacToolTip *tip , int msec )
{
m_tip = tip;
{
m_window = NULL ;
m_backpict = NULL ;
-#if wxUSE_TIMER
+#if wxUSE_TIMER
m_timer = NULL ;
#endif
m_mark = 0 ;
m_window =win;
s_ToolTipWindowRef = m_window ;
m_backpict = NULL ;
-#if wxUSE_TIMER
- if ( m_timer )
- delete m_timer ;
+#if wxUSE_TIMER
+ delete m_timer ;
m_timer = new wxMacToolTipTimer( this , s_ToolTipDelay ) ;
#endif // wxUSE_TIMER
wxMacToolTip::~wxMacToolTip()
{
-#if wxUSE_TIMER
+#if wxUSE_TIMER
if ( m_timer )
{
delete m_timer ;
void wxMacToolTip::Clear()
{
m_mark++ ;
-#if wxUSE_TIMER
+#if wxUSE_TIMER
if ( m_timer )
{
delete m_timer ;