removed clearing (done anyway)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -131,29 +131,6 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
wxString paragraph;
|
wxString paragraph;
|
||||||
int i = 0 ;
|
int i = 0 ;
|
||||||
wxString text = m_label;
|
wxString text = m_label;
|
||||||
|
|
||||||
PrepareDC(dc);
|
|
||||||
|
|
||||||
bool doClear = true ;
|
|
||||||
WindowRef window = GetMacRootWindow() ;
|
|
||||||
if ( window )
|
|
||||||
{
|
|
||||||
wxWindow* win = wxFindWinFromMacWindow( window ) ;
|
|
||||||
if ( win )
|
|
||||||
{
|
|
||||||
wxWindow* parent = GetParent() ;
|
|
||||||
while ( parent )
|
|
||||||
{
|
|
||||||
if( parent->MacGetWindowData() )
|
|
||||||
{
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent = parent->GetParent() ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while (i < text.Length())
|
while (i < text.Length())
|
||||||
{
|
{
|
||||||
paragraph += text[i];
|
paragraph += text[i];
|
||||||
@@ -163,7 +140,6 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paragraph.Length() > 0)
|
if (paragraph.Length() > 0)
|
||||||
DrawParagraph(dc, paragraph);
|
DrawParagraph(dc, paragraph);
|
||||||
}
|
}
|
||||||
@@ -233,7 +209,5 @@ void wxStaticText::SetLabel(const wxString& st )
|
|||||||
SetSize( GetBestSize() ) ;
|
SetSize( GetBestSize() ) ;
|
||||||
|
|
||||||
Refresh() ;
|
Refresh() ;
|
||||||
MacUpdateImmediately() ;
|
Update() ;
|
||||||
// wxClientDC dc(this);
|
|
||||||
// OnDraw( dc ) ;
|
|
||||||
}
|
}
|
||||||
|
@@ -131,29 +131,6 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
wxString paragraph;
|
wxString paragraph;
|
||||||
int i = 0 ;
|
int i = 0 ;
|
||||||
wxString text = m_label;
|
wxString text = m_label;
|
||||||
|
|
||||||
PrepareDC(dc);
|
|
||||||
|
|
||||||
bool doClear = true ;
|
|
||||||
WindowRef window = GetMacRootWindow() ;
|
|
||||||
if ( window )
|
|
||||||
{
|
|
||||||
wxWindow* win = wxFindWinFromMacWindow( window ) ;
|
|
||||||
if ( win )
|
|
||||||
{
|
|
||||||
wxWindow* parent = GetParent() ;
|
|
||||||
while ( parent )
|
|
||||||
{
|
|
||||||
if( parent->MacGetWindowData() )
|
|
||||||
{
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
|
|
||||||
parent = parent->GetParent() ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while (i < text.Length())
|
while (i < text.Length())
|
||||||
{
|
{
|
||||||
paragraph += text[i];
|
paragraph += text[i];
|
||||||
@@ -163,7 +140,6 @@ void wxStaticText::OnDraw( wxDC &dc )
|
|||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paragraph.Length() > 0)
|
if (paragraph.Length() > 0)
|
||||||
DrawParagraph(dc, paragraph);
|
DrawParagraph(dc, paragraph);
|
||||||
}
|
}
|
||||||
@@ -233,7 +209,5 @@ void wxStaticText::SetLabel(const wxString& st )
|
|||||||
SetSize( GetBestSize() ) ;
|
SetSize( GetBestSize() ) ;
|
||||||
|
|
||||||
Refresh() ;
|
Refresh() ;
|
||||||
MacUpdateImmediately() ;
|
Update() ;
|
||||||
// wxClientDC dc(this);
|
|
||||||
// OnDraw( dc ) ;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user