s_ToolTipArea = wxRect2DInt( event.m_x - 2 , event.m_y - 2 , 4 , 4 ) ;
s_LastWindowEntered = win ;
- WindowRef window = MAC_WXHWND( win->MacGetRootWindow() ) ;
+ WindowRef window = MAC_WXHWND( win->MacGetTopLevelWindowRef() ) ;
int x = event.m_x ;
int y = event.m_y ;
wxPoint local( x , y ) ;
LocalToGlobal( (Point *) &tag.absHotRect.top );
LocalToGlobal( (Point *) &tag.absHotRect.bottom );
SetPort( port );
- m_helpTextRef = m_label ;
+ m_helpTextRef.Assign( m_label , wxFONTENCODING_DEFAULT ) ;
tag.content[kHMMinimumContentIndex].contentType = kHMCFStringContent ;
tag.content[kHMMinimumContentIndex].u.tagCFString = m_helpTextRef ;
tag.content[kHMMaximumContentIndex].contentType = kHMCFStringContent ;
int width = 0 ;
int thiswidth = 0 ;
int laststop = 0 ;
- wxCharBuffer text = wxMacStringToCString( m_label ) ;
+ wxCharBuffer text = m_label.mb_str( wxConvLocal) ;
while( i < length )
{