Solved

Change colour of a panel

Posted on 2002-07-24
4
217 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now