added native alignement support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-03-28 19:42:18 +00:00
parent f6809556cf
commit 03c4c72be6

View File

@ -673,8 +673,18 @@ void wxWindowMac::MacUpdateControlFont()
fontStyle.size = m_font.MacGetFontSize() ;
fontStyle.flags = kControlUseFontMask | kControlUseFaceMask | kControlUseSizeMask ;
}
fontStyle.just = teJustLeft ;
fontStyle.flags |= kControlUseJustMask ;
if ( ( GetWindowStyle() & wxALIGN_MASK ) & wxALIGN_CENTER_HORIZONTAL )
fontStyle.just = teJustCenter ;
else if ( ( GetWindowStyle() & wxALIGN_MASK ) & wxALIGN_RIGHT )
fontStyle.just = teJustRight ;
fontStyle.foreColor = MAC_WXCOLORREF(GetForegroundColour().GetPixel() ) ;
fontStyle.flags |= kControlUseForeColorMask ;
::SetControlFontStyle( (ControlRef) m_macControl , &fontStyle );
Refresh() ;
}