Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Change the color of a control automatically in Delphi apps (https://www.delphipraxis.net/211053-change-color-control-automatically-delphi-apps.html)

DP News-Robot 21. Jul 2022 10:10

Change the color of a control automatically in Delphi apps
 
In this tutorial, we will show you how to implement an automatic color changing for any control on the form. Change the color randomly Put a “Timer” control on the form. Set the required duration for changing the color, in the Timer “Duration” property. Now, open the “OnTimer” event handler and write the code below …


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:13 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz