call Fit() when updating the message label to adapt to longer (or much shorter) labels
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9ef3e400e0
commit
c0b25bb258
@ -668,6 +668,8 @@ void wxProgressDialog::UpdateMessage(const wxString &newmsg)
|
||||
{
|
||||
m_msg->SetLabel(newmsg);
|
||||
|
||||
Fit(); // adapt to the new label size
|
||||
|
||||
wxYieldIfNeeded() ;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user