4
Explanation:
Next, I have a TThread
running parallel to Main Thread
. And I have a routine to give fade image. Well, the important thing is that I realize this fade in a given time in milliseconds, so I did the routine based on a TTimer
.
Problem:
When I execute the command of fade, because of the timer my thread follows the independent execution of the fade whether or not to have closed. However, what prevents me from giving two or more Fades sequential.
So what I need is a way to leave the thread waiting for my command to end.
I thought I’d use one loop simple to run the fade, but how could I measure time without the timer? Does anyone have any idea?
@Pauloroberto why you put the words as code?
– Guill
Because they relate to actions involving code, they are English terms used for a particular achievement, they ask for emphasis. Objective is to facilitate understanding.
– Paulo Roberto Rosa
English terms should be written in italics. Not in code.
– Guill
Why should they? Italics would imply virtually no difference from the rest of the text. - However comments such as these written by me and you are not helping in understanding the question, should be later excluded.
– Paulo Roberto Rosa
@Pauloroberto in my view, the words fade should be exchanged for the effect of appearing/disappearing/fading. They are not related to the code in any way.
– EMBarbosa
What’s the problem with you creating the thread or starting its execution only after the effect is over?
– EMBarbosa
I think I explained myself wrong. The effect is called in the middle of the thread.
– Guill