Explanation:
Next, I have a TThread
running parallel to Main Thread
. And I have a routine to give a fade in the image. Well, the important thing is that I do this fade in a certain time in milliseconds, so I did the routine based on a TTimer
.
Problem:
When I run the fade command, because of the timer my thread follows the fade independent execution in> to have or not closed. However, what prevents me from giving two or more sequential fades .So what I need is a way to leave the thread waiting for my command to finish.
I thought of using a simple loop to run fade , but how could I measure time without the timer ? Anyone have any ideas?