Call wxYield() while showing wxBusyInfo in the dialogs sample

Otherwise it can't be seen at all with wxGTK.
This commit is contained in:
Vadim Zeitlin 2023-10-03 16:28:55 +02:00
parent 3d07de66b1
commit 6f9f4c6dbe

View file

@ -3542,7 +3542,11 @@ void MyFrame::ShowRichBusyInfo(wxCommandEvent& WXUNUSED(event))
.Transparency(4*wxALPHA_OPAQUE/5)
);
wxSleep(5);
for ( int i = 0; i < 20; i++ )
{
wxTheApp->Yield();
wxMilliSleep(250);
}
}
#endif // wxUSE_BUSYINFO