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

@@ -83,6 +83,10 @@ wxDC::wxDC()
m_macClipRect.right = 32000 ;
m_macClipRect.bottom = 32000 ;
::GetPort( &m_macOrigPort ) ;
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
m_brush = *wxWHITE_BRUSH;
};
wxDC::~wxDC(void)

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 ) ;
}

View File

@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
vsprintf(buffer,fmt,ap) ;
strcat(buffer,";g") ;
debugstr(buffer) ;
c2pstr(buffer) ;
DebugStr((unsigned char*) buffer) ;
va_end(ap);
}

View File

@@ -83,6 +83,10 @@ wxDC::wxDC()
m_macClipRect.right = 32000 ;
m_macClipRect.bottom = 32000 ;
::GetPort( &m_macOrigPort ) ;
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;
m_brush = *wxWHITE_BRUSH;
};
wxDC::~wxDC(void)

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 ) ;
}

View File

@@ -157,7 +157,8 @@ void wxDebugMsg(const char *fmt ...)
vsprintf(buffer,fmt,ap) ;
strcat(buffer,";g") ;
debugstr(buffer) ;
c2pstr(buffer) ;
DebugStr((unsigned char*) buffer) ;
va_end(ap);
}