Refresh is necessary in earlier systems, no penalty when doing in 10.3+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,7 +95,7 @@ void wxStaticText::SetLabel(const wxString& st )
|
|||||||
InvalidateBestSize();
|
InvalidateBestSize();
|
||||||
SetSize( GetBestSize() ) ;
|
SetSize( GetBestSize() ) ;
|
||||||
}
|
}
|
||||||
|
Refresh() ;
|
||||||
Update() ;
|
Update() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,10 +106,10 @@ bool wxStaticText::SetFont(const wxFont& font)
|
|||||||
if ( ret )
|
if ( ret )
|
||||||
{
|
{
|
||||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||||
{
|
{
|
||||||
InvalidateBestSize();
|
InvalidateBestSize();
|
||||||
SetSize( GetBestSize() );
|
SetSize( GetBestSize() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user