mac fixes part II

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-08 11:49:20 +00:00
parent ab85e6cd00
commit 9ff647cf66
6 changed files with 24 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
return;
PrepareDC(dc);
dc.Clear() ;
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
int x = 0 ;
int y = 0 ;
@@ -259,7 +259,9 @@ void wxStaticText::SetLabel(const wxString& st )
m_label = st ;
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
SetSizeOrDefault() ;
wxClientDC dc(this);
OnDraw( dc ) ;
Refresh() ;
MacUpdateImmediately() ;
// wxClientDC dc(this);
// OnDraw( dc ) ;
}