Call wxYield() while showing wxBusyInfo in the dialogs sample
Otherwise it can't be seen at all with wxGTK.
This commit is contained in:
parent
3d07de66b1
commit
6f9f4c6dbe
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue