git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66777
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxWidgetIPhoneImpl::SetBackgroundStyle(wxBackgroundStyle style)
{
bool wxWidgetIPhoneImpl::SetBackgroundStyle(wxBackgroundStyle style)
{
- [m_osxView setOpaque: (style == wxBG_STYLE_PAINT) ];
+ if ( style == wxBG_STYLE_PAINT )
+ [m_osxView setOpaque: YES ];
+ else
+ {
+ [m_osxView setOpaque: NO ];
+ m_osxView.backgroundColor = [UIColor clearColor];
+ }
+ return true;
}
void wxWidgetIPhoneImpl::SetLabel(const wxString& title, wxFontEncoding encoding)
}
void wxWidgetIPhoneImpl::SetLabel(const wxString& title, wxFontEncoding encoding)
CGContextRef context = (CGContextRef) UIGraphicsGetCurrentContext();
CGContextSaveGState( context );
// draw background
CGContextRef context = (CGContextRef) UIGraphicsGetCurrentContext();
CGContextSaveGState( context );
// draw background
CGContextSetFillColorWithColor( context, GetWXPeer()->GetBackgroundColour().GetCGColor());
CGContextFillRect(context, *rect );
CGContextSetFillColorWithColor( context, GetWXPeer()->GetBackgroundColour().GetCGColor());
CGContextFillRect(context, *rect );
GetWXPeer()->MacSetCGContextRef( context );
GetWXPeer()->GetUpdateRegion() =
GetWXPeer()->MacSetCGContextRef( context );
GetWXPeer()->GetUpdateRegion() =