Daniel A-S
Member
Hi.
Basically what I want is a timer with an interval of 3000 to control a progress bar, as the timer counts up to 750, the progress bar moves up 25/100, as the timer counts up 1500, the progress bar moves up to 50/100 e.t.c.
At the moment I've got it like this:
begin
if Timer1.interval >= 0 < 750
then ProgressBar1.position := 25;
if Timer1.interval >= 750 < 1500
then ProgressBar1.position := 50;
if Timer1.interval >= 1500 < 2250
then ProgressBar1.position := 75;
if Timer1.interval <= 3000
then ProgressBar1.position := 100
end;
Any help appreciated.
Thanks.
Basically what I want is a timer with an interval of 3000 to control a progress bar, as the timer counts up to 750, the progress bar moves up 25/100, as the timer counts up 1500, the progress bar moves up to 50/100 e.t.c.
At the moment I've got it like this:
begin
if Timer1.interval >= 0 < 750
then ProgressBar1.position := 25;
if Timer1.interval >= 750 < 1500
then ProgressBar1.position := 50;
if Timer1.interval >= 1500 < 2250
then ProgressBar1.position := 75;
if Timer1.interval <= 3000
then ProgressBar1.position := 100
end;
Any help appreciated.
Thanks.