Question about Operating Systems
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
Tips for a great answer:
Jan 08, 2013 | Apple Mac OS X 1063 Snow Leopard Family...
Open Personalization by clicking
the Start button, clicking Control
Panel, clicking Appearance and Personalization, and then clicking Personalization.
Click Window Color and Appearance.
Under Window Color and Appearance,
click the color you want, and then click OK.
If you see the Appearance Settings dialog box instead
of the Window Color and Appearance
window, the theme might not be set to Windows Vista, the color scheme might not be
set to Windows Aero, or the computer might
not meet the minimum hardware requirements for running Windows Aero. For more information, see Troubleshoot
problems with Windows Aero.
Hope this helps.
Dec 03, 2012 | Microsoft Windows Vista Ultimate Edition
Nov 02, 2010 | Operating Systems
Sep 20, 2010 | Operating Systems
Jul 09, 2009 | Microsoft Windows Vista Ultimate Edition
Feb 09, 2009 | Microsoft Operating Systems
Jan 06, 2009 | Microsoft Windows Vista Ultimate Edition
Nov 15, 2008 | Operating Systems
Apr 04, 2008 | Microsoft Windows XP Professional for PC
Nov 04, 2007 | Microsoft Windows XP Professional With...
2,543 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: