better variant support, fixes #11114

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-08-18 15:39:53 +00:00
parent eb1d8888a1
commit 71da935dd2

View File

@ -1509,6 +1509,12 @@ void wxWidgetCocoaImpl::SetControlSize( wxWindowVariant variant )
}
if ( [m_osxView respondsToSelector:@selector(setControlSize:)] )
[m_osxView setControlSize:size];
else if ([m_osxView respondsToSelector:@selector(cell)])
{
id cell = [(id)m_osxView cell];
if ([cell respondsToSelector:@selector(setControlSize:)])
[cell setControlSize:size];
}
}
void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)