::SetControlFontStyle( m_controlRef , &fontStyle );
}
+void wxMacControl::SetBackground( const wxBrush &WXUNUSED(brush) )
+{
+ // TODO
+ // setting up a color proc is not recommended anymore
+}
+
void wxMacControl::SetRange( SInt32 minimum , SInt32 maximum )
{
::SetControl32BitMinimum( m_controlRef , minimum ) ;
hiPoint.x = pt->x ;
hiPoint.y = pt->y ;
HIViewConvertPoint( &hiPoint , from->m_controlRef , to->m_controlRef ) ;
- pt->x = hiPoint.x ;
- pt->y = hiPoint.y ;
+ pt->x = (int)hiPoint.x ;
+ pt->y = (int)hiPoint.y ;
#endif
}
void wxMacControl::GetBestRect( Rect *r )
{
- Rect bestsize = { 0 , 0 , 0 , 0 } ;
short baselineoffset ;
GetBestControlRect( m_controlRef , r , &baselineoffset ) ;
}
void wxMacControl::SetTitle( const wxString &title )
{
- UMASetControlTitle( m_controlRef , title , m_font.GetEncoding() ) ;
+ wxFontEncoding encoding;
+
+ if ( m_font.Ok() )
+ encoding = m_font.GetEncoding();
+ else
+ encoding = wxFont::GetDefaultEncoding();
+
+ UMASetControlTitle( m_controlRef , title , encoding ) ;
}
void wxMacControl::GetFeatures( UInt32 * features )