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();
|
||||
SetSize( GetBestSize() ) ;
|
||||
}
|
||||
|
||||
Refresh() ;
|
||||
Update() ;
|
||||
}
|
||||
|
||||
@@ -106,10 +106,10 @@ bool wxStaticText::SetFont(const wxFont& font)
|
||||
if ( ret )
|
||||
{
|
||||
if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) )
|
||||
{
|
||||
InvalidateBestSize();
|
||||
SetSize( GetBestSize() );
|
||||
}
|
||||
{
|
||||
InvalidateBestSize();
|
||||
SetSize( GetBestSize() );
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user