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

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -