Question about Computers & Internet
Hi this is Srikanth from India.
can u help me to solve the problem.
I would like to change the buttor color in Delphi.
Is there any way for this?
Alas, you can't change the color of a Delphi button. Delphi's
buttons have the same color as Windows' buttons. This color depends
from the Windows version (XP, 2000, 98,...) and from what might have
been changed by the user in Windows' "Display Properties".
There is no standard Delphi method to make a button "flash" (such as for example Button1.Flash). But you could imitate flashing by showing and hiding the button's caption (text) every so many milliseconds, under program control. If you are interested in this, let me know and I'll figure out some source code :)
Second solution: imitate a colored button. Use a TPanel component instead, it also has OnClick, OnMouseDown and OnMouseUp events just like a button has, but it also has a Color property.
In the OnMouseDown event handler, change the panel's appearance: change the BevelOuter property to bvLowered, and restore it to bvRaised appearance when OnMouseUp comes. If you want to try this, let me know and I'll cook up some code :)
Last possibility: get a custom button component that has a color property. There are several freeware colored buttons around on the web.
Posted on Aug 02, 2008
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Sep 22, 2011 | Sony BRAVIA KDL-V40XBR1 Television
Jul 20, 2010 | Delphi SKYFi3 XM Radio Receiver
Dec 01, 2009 | Apple iPhone Smartphone
Jul 04, 2009 | Computers & Internet
Nov 13, 2008 | Cell Phones
Oct 26, 2008 | Delphi Roady Xt Home Kit Sa1017611p1
Apr 25, 2008 | Delphi Roady XT XM Radio Receiver
2,544 people viewed this question
Usually answered in minutes!