How to create fade in and fade out effects for TLabel in Delphi -


When a user clicks on the label, it changes its color for some milliseconds and then returns to its previous color is.

How to emulate this effect in Delphi

set font color on one side When you click on the item then start TTimer :

  Label.Font.Color: = & lt; Enter your highlight color; Timer Effects. Enabled: = true;  

Timer fire does something like this:

  Timer effects. Enabled: = false; Label.Font.Color: = clBLack; // Color you want to set the label back to  

Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -