Question about Operating Systems

1 Answer

How to change the button color in Delphi

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?

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Scholar:

    An expert who has written 20 answers of more than 400 characters.

  • Expert
  • 93 Answers

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

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

I want to change my monitor colour temperature


When you use the Colors window to select colors for text or objects in a document, you can also assign a color profile to the document. Color profiles help ensure that the colors you see in the document onscreen match the colors in the document when it's printed or viewed on another computer.
To choose a color profile for a document:
  1. In your document, select the text or object whose color you want to change.
  2. Open the Colors window.
    In some applications, you can open the Colors window by choosing Format > Font > Show Colors or Format > Show Colors. In some applications, you can also click a button in the application's toolbar or a settings pane.
  3. Click the Color Sliders button.
  4. Choose a slider option from the pop-up menu.
  5. Drag the sliders or enter specific values to adjust the color.
  6. Click the colored box next to the pop-up menu and choose a profile from the list.
If you open your document and the colors appear in a different shade or hue than you expected, the application you're using might not recognize color profiles. Try using the generic color profiles instead.
In some cases, an application may not open documents that use non-generic color profiles.
You can create your own custom color profiles using ColorSync Utility. For more information, open ColorSync Utility and choose Help > ColorSync Utility Help.

Jan 08, 2013 | Apple Mac OS X 1063 Snow Leopard Family...

1 Answer

What's your problem?hi iam using winods vista ultimTE but i cant change the resolution of my screen


Click start control panel display desktop you can select a different desktop from the drop down list
or a browse button where you can select different pictures this may vary depending on your operating system

also you can change the settings for more or less pixels or from the drop down list pick the appropriate level of color range or troubleshoot also select advanced then general dpi normal

size, larger size or custom settings
Always click APPLY after making any changes


windows 7

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.


Note

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

1 Answer

HOW CAN I DOWNLOAD BORLAND DELPHI 7 PROGRAM?


Hi,
You can download the software from the following link: http://www.brothersoft.com/delphi-76437.html
Please rate this solution. Regards.

Nov 02, 2010 | Operating Systems

3 Answers

Tata Indicom


To solve your problem uninstall the software and go to this link
http://www.tataindicom.com/t-personal-internet-photon-whiz.aspx
While here find the Download Dialer tab and download the appropriate software for your device and operating system.Download both the Dialer and Driver.

Hope this helps you solve your problem.

Jul 09, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

Creating a simple game using delphi language...


there are some game examples in the delphi demo folder.

Feb 09, 2009 | Microsoft Operating Systems

1 Answer

Direct draw driver for xp


That is alread supposed to be in your system and probably it's just been disabled. so you need to enable it
Start>Run
type in " dxdiag" withou qeotes
once pane displayed then
choose Display tab
and enable your Direct draw one.
if you see nothing there then you need to download Graphic driver for your graphic card manufacturer website.
thanks

Jan 06, 2009 | Microsoft Windows Vista Ultimate Edition

1 Answer

HELP IN CHANGING COLOR FOR MAPS


you're going to need some 'if then statements' linked to the color of the city. and some global procs for them so that they can tell the program what state they are in.
on mouse down-action x-
action x
if city.rgb=(rrr,ggg,bbb)
then city.rgb = (rrr2,ggg2,bbb2)
end

Nov 15, 2008 | Operating Systems

1 Answer

Win Proxy 5.0


hi
add user and their ip address whom u give permission of internet
.also u can set time and other settings to this user.
on user pc go to iexplorer propertites and go to connection and lansettings give ip addresses of proxy server.
if problem not solved i help u.online
if u need more details call me i think u r in india if call me on my cell .
my cell is:

Apr 04, 2008 | Microsoft Windows XP Professional for PC

2 Answers

Registartion XP sp2


Try to call your local Microsoft office in India and let them know your problem they will give some important instruction how to do it.

Once you install the legal copy of windows it is necessary to inform them that you are going to activate the system. Most of the installer will provide a toll free number use to call.

Please rate me Solved if you like my solution.

Best regards,

Philip

Nov 04, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

2,543 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...