Solved

Change colour of a panel

Posted on 2002-07-24
4
219 Views
Last Modified: 2010-04-04
Hi all,

I would like to change the color of a panel to a custom color. I know the RGB values, but the properties are like "clBlue" etc.

Any ideas?

Thanks
Freerider
0
Comment
Question by:Freerider
4 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7174922
panel1.color := $RHexValueGHexValueBHexValue;

for ex:
panel1.color := $0ABBCC;

don't know if the colororder is correct
just from head

meikl ;-)
0
 
LVL 7

Expert Comment

by:Cynna
ID: 7175366
Or maybe...

Panel1.Color:=RGB(255,0,0); // Change color to red
Panel1.Color:=RGB(0,255,0); // Change color to green
Panel1.Color:=RGB(0,0,255); // Change color to blue
Panel1.Color:=RGB(100,100,100); // Change color to gray

...you get the picture ;)



0
 
LVL 5

Accepted Solution

by:
alanwhincup earned 100 total points
ID: 7175682
If you want to do it in the Object Inspector then you can double click on where it lists the Colors in the panels properties and then a windows will come up called 'Color'. After that click on 'Define Custom Colors' and then type in your RGB values or choose a color.
0
 

Author Comment

by:Freerider
ID: 7178155
Thanks. That's what I wanted.
-Freerider
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 90
Intraweb download file link ? 1 133
Error E2158 compiling with Delphi XE10 Seattle 2 100
Find and Replace Stream with 0s 8 62
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question