Cooper
2010-03-27 22:14:15 UTC
Hello, i have this code:
StatusBar1.Caption := 'Loading...';
ProgressBar1.Position := 50;
// Some operation
Sleep (1000);
ProgressBar1.Position := 100;
StatusBar1.Caption := 'Completed.';
My problem is that all this operation not are syncronized. In sense i want
that this are executed only after that it ended.
At moment, effect is that i display "completed" before that progress bar has
terminated; as i can solve this problem?
Thanks very much.
Cooper.
PS: I have tried too using time for lag, but same effect :(
StatusBar1.Caption := 'Loading...';
ProgressBar1.Position := 50;
// Some operation
Sleep (1000);
ProgressBar1.Position := 100;
StatusBar1.Caption := 'Completed.';
My problem is that all this operation not are syncronized. In sense i want
that this are executed only after that it ended.
At moment, effect is that i display "completed" before that progress bar has
terminated; as i can solve this problem?
Thanks very much.
Cooper.
PS: I have tried too using time for lag, but same effect :(