Armel
2009-05-26 13:45:36 UTC
[wx2.6.3 on Mac]
hello,
I have a wxListCtrl widget which shows statistics on the fly during a long
process, unfortunately it remains frozen until the loop finishes.
basically, the loop looks like this:
while (long_process_runing)
{
listctrl->Freeze();
listctrl->DeletaAllItems();
// insert the new items
listctrl->Thaw();
// added for the mac in the hope of getting a result
listctrl->Refresh();
listctrl->Update();
// end of addition
wxApp::GetInstace()->Yield(true);
}
any idea why it would never refresh until the long work actually ends?
Regards
Armel
--
hello,
I have a wxListCtrl widget which shows statistics on the fly during a long
process, unfortunately it remains frozen until the loop finishes.
basically, the loop looks like this:
while (long_process_runing)
{
listctrl->Freeze();
listctrl->DeletaAllItems();
// insert the new items
listctrl->Thaw();
// added for the mac in the hope of getting a result
listctrl->Refresh();
listctrl->Update();
// end of addition
wxApp::GetInstace()->Yield(true);
}
any idea why it would never refresh until the long work actually ends?
Regards
Armel
--