Allow app to call SetWindowVariant before creation of control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -650,9 +650,14 @@ void wxWindowMac::MacPostControlCreate(const wxPoint& pos, const wxSize& size)
|
|||||||
|
|
||||||
void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
|
void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
|
||||||
{
|
{
|
||||||
wxASSERT( m_macControl != NULL ) ;
|
// Don't assert, in case we set the window variant before
|
||||||
|
// the window is created
|
||||||
|
// wxASSERT( m_macControl != NULL ) ;
|
||||||
|
|
||||||
m_windowVariant = variant ;
|
m_windowVariant = variant ;
|
||||||
|
|
||||||
|
if (!m_macControl)
|
||||||
|
return;
|
||||||
|
|
||||||
ControlSize size ;
|
ControlSize size ;
|
||||||
ThemeFontID themeFont = kThemeSystemFont ;
|
ThemeFontID themeFont = kThemeSystemFont ;
|
||||||
|
Reference in New Issue
Block a user