When does Servoy change visual elements?

When fields change their background colour and Servoy does not do this immediately (looking at debug). These fields only changes the colour when the program returns for user input… I think I am missing some fundamental understanding of how Servoy works and would appreciate a little bit of direction…

Thank you so much if you answer this.

Kind Regards
Jonathon

If you are changing the UI inside a function, this will not appear until the function has finished.
If you want the changes to happen during the execution of the method (for example, incrementally), just add

application.updateUI(); 

where you want that to happen…