2009-03-12, 03:59 PM
when doing things that take a long time, I like to display periodic updates to the user, letting them know my code hasn't crashed, it is just busy.
something like
SetOnScreenText("performing query. Please wait");
Pluginhelper.ForceRepaint();
execute(query);
foreach (record r in query) {
SetOnScreenText("processing record " + r.title )
Pluginhelper.ForceRepaint()
// process record
}
Now, this works as expected if triggered from a button. But when called from ActivateItem, the screen never updates until after ActivateItem is exited.
Is this by design? Is there a way around it?
Thanks
something like
SetOnScreenText("performing query. Please wait");
Pluginhelper.ForceRepaint();
execute(query);
foreach (record r in query) {
SetOnScreenText("processing record " + r.title )
Pluginhelper.ForceRepaint()
// process record
}
Now, this works as expected if triggered from a button. But when called from ActivateItem, the screen never updates until after ActivateItem is exited.
Is this by design? Is there a way around it?
Thanks