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:
@@ -668,6 +668,8 @@ void wxProgressDialog::UpdateMessage(const wxString &newmsg)
|
|||||||
{
|
{
|
||||||
m_msg->SetLabel(newmsg);
|
m_msg->SetLabel(newmsg);
|
||||||
|
|
||||||
|
Fit(); // adapt to the new label size
|
||||||
|
|
||||||
wxYieldIfNeeded() ;
|
wxYieldIfNeeded() ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user