> bar.PerformStep ();
I noticed that there's a property for the bar stating what time
it should take for the animation to move the fill to the
requested spot. I'm guessing that's the time i should delay
my text updating by. Correct?
When you mentioned a delay - is there an other way to do
it than threads? I've found this solution.
else {
System.Threadin g.Thread.Sleep (1000);
status.Text = "Done."; }
The thing is that while it postpones the text update (good,
good) it also removes the animation of the bar. By other
words - the bar waits for a second, then skips to the new
position, instead of being "pumped-up".
Most of all, it would be nice to get a report from the bar
saying "yey, i'm done animating" and then proceede.
Too much?
--
Regards
Konrad Viltersten
--------------------------------
IT-Consultant
Mandator, Fujitsu Services
0730 - 700 418
> if (bar.Value < bar.Maximum)
> status.Text = "Pretending to work!";
> else
> status.Text = "Done.";
> status.Text = "Pretending to work!";
> else
> status.Text = "Done.";
>
If you want to see the value at 100% before the text saying
done shows up, then you need to put a small delay in the
"else" part of your code.
If you want to see the value at 100% before the text saying
done shows up, then you need to put a small delay in the
"else" part of your code.
it should take for the animation to move the fill to the
requested spot. I'm guessing that's the time i should delay
my text updating by. Correct?
When you mentioned a delay - is there an other way to do
it than threads? I've found this solution.
else {
System.Threadin g.Thread.Sleep (1000);
status.Text = "Done."; }
The thing is that while it postpones the text update (good,
good) it also removes the animation of the bar. By other
words - the bar waits for a second, then skips to the new
position, instead of being "pumped-up".
Most of all, it would be nice to get a report from the bar
saying "yey, i'm done animating" and then proceede.
Too much?
--
Regards
Konrad Viltersten
--------------------------------
IT-Consultant
Mandator, Fujitsu Services
0730 - 700 418
Comment