git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73047
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GetParent()->MacChildAdded() ;
// adjust font, controlsize etc
GetParent()->MacChildAdded() ;
// adjust font, controlsize etc
- DoSetWindowVariant( m_windowVariant ) ;
+ GetPeer()->SetControlSize( m_windowVariant );
+ InheritAttributes();
+ // in case nothing has been set, use the variant default fonts
+ if ( !m_hasFont )
+ DoSetWindowVariant( m_windowVariant );
GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;
GetPeer()->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;