A New TTask based Login Form with TFloatAnimation
I have seen so many login forms which are created using the FireMonkey. And they were too simple. For instance, it has a panel, two text fields and one big button. Like this:
I just upgraded this login form using the FireMonkey features.
So what I have added?
– The TFloatAnimation component which gives you so many cool things that you can use for creating stunning animations without other resources.
– Tab transition which lots
– The System.Threading module that you can use it for creating multi-threaded applications.
And here is the result:
I don’t want create a tutorial because showing the real result is more valuable than showing steps. And if you have some little experience in Delphi and FireMonkey you can just figure it out.
So here is the main thing that I want to talk about. As I said I have used the System.Threading module which it has TTask,
By the time I wanted to do some changes to the UI in one procedure. In my login form, I have used the TFloatAnimation that decreases the opacity property in 500 milliseconds. Then I needed to change a visible property of the TLayout after 500 milliseconds. Because if you do these simultaneously a user can not see the animation and he/she feels bad.
Here you can see the difference:
I think you have understood!
Here is the source full source code Project
If you liked it, you can support Delphi.Uz by giving stars to my repositories on Github or you can just share it with your friends on social networks or you must get the Fastest web hosting account from my partnership link! (The partnership link is also placed on the right side)