workaround MacSetMetalAppearance being made protected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-03-08 03:06:25 +00:00
parent 1e9bafca0f
commit f355f03e63

View File

@@ -134,7 +134,16 @@ public:
virtual bool IsActive(); virtual bool IsActive();
#ifdef __WXMAC__ #ifdef __WXMAC__
void MacSetMetalAppearance( bool on ); %extend {
void MacSetMetalAppearance( bool on ) {
int style = self->GetExtraStyle();
if ( on )
style |= wxFRAME_EX_METAL;
else
style &= ~wxFRAME_EX_METAL;
self->SetExtraStyle(style);
}
}
bool MacGetMetalAppearance() const; bool MacGetMetalAppearance() const;
#else #else
%extend %extend