How to repaint the progressbar in FMX (Android)

  

I have a progress bar and a lot of tasks to do. I just want to increase the value of the progress bar when a task (bool and void functions) was completed. For example:
changeClothes();
progressBar1->Value = 20;
eatSandwich();
progressBar1->Value = 40;
if(isWeekend()){
progressBar1->Value = 60;
ShowMessage("Weekend!");
}else
ShowMessage("Not Weekend");
haveDinner();
progressBar1->Value = 80;
timeToSleep();
progressBar1->Value = 100;

I tried to do using a for but no good results. Tried to do in the way that I mentioned, but it does everything and shows the bar already with the value in 100.

Comments are closed.