Let us clarify your doubt ... You can do it in the following way. Since you have already included a Timer component on the screen called Timer1.
1st - Create an OnTimer event of the Timer component.
2º - Put the code, it looks like this.
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Gauge1.Progress := Gauge1.Progress + 1;
if Gauge1.Progress = 10 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if Gauge1.Progress = 30 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if Gauge1.Progress = 50 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg');
end;
3º - Define the time in which Gauge1.Progress will be incremented, in Timer1 in the Interval property, remembering that the time is measured in ms, that is, 1000 is 1 second. If it is 1 second the set time, in 10 seconds the process will change the image to 2.jpg, in 30 seconds 3.jpg and so on.
4º - When you want to start this count, simply put the Enabled property of Timer1 in True, and otherwise False.
5º - In this case from 50 the image will always be 1.jpg, let's say that when the Gauge1.Progress reaches 60 we will want to start counting again from 0. Then we change the code and put something like this:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Gauge1.Progress := Gauge1.Progress + 1;
if Gauge1.Progress = 10 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if Gauge1.Progress = 30 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if Gauge1.Progress = 50 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if Gauge1.Progress = 60 then
Gauge1.Progress = 0;
end;
6º - If Gauge1.Progress can not be zeroed, depending on the logic of your program, then create a variable in the Form of type Integer to do this process. Getting something like:
private
contador: Integer;
...
...
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Gauge1.Progress := Gauge1.Progress + 1;
Inc(contador);
if contador = 10 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if contador = 30 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if contador = 50 then
Image1.Picture.LoadFromFile('C:\contas_a_pagar\img\home.jpg')
else if contador = 60 then
contador = 0;
end;