void wxNonOwnedWindowCocoaImpl::ShowWithoutActivating()
{
- [[m_macWindow contentView] setNeedsDisplay:YES];
+ [m_macWindow orderBack:nil];
+ [[m_macWindow contentView] setNeedsDisplay: YES];
}
bool wxNonOwnedWindowCocoaImpl::Show(bool show)
[m_macWindow makeKeyAndOrderFront:nil];
else
[m_macWindow orderFront:nil];
- ShowWithoutActivating();
+ [[m_macWindow contentView] setNeedsDisplay: YES];
}
else
[m_macWindow orderOut:nil];
}
}
-bool wxNonOwnedWindowCocoaImpl::SetBackgroundStyle(wxBackgroundStyle WXUNUSED(style))
+bool wxNonOwnedWindowCocoaImpl::SetBackgroundStyle(wxBackgroundStyle style)
{
+ if ( style == wxBG_STYLE_TRANSPARENT )
+ {
+ [m_macWindow setOpaque:NO];
+ [m_macWindow setBackgroundColor:[NSColor clearColor]];
+ }
+
return true;
}
bool wxNonOwnedWindowCocoaImpl::SetShape(const wxRegion& WXUNUSED(region))
{
- return false;
+ [m_macWindow setOpaque:NO];
+ [m_macWindow setBackgroundColor:[NSColor clearColor]];
+
+ return true;
}
void wxNonOwnedWindowCocoaImpl::SetTitle( const wxString& title, wxFontEncoding encoding )