Change colour of a panel

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

Question by:Freerider
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Expert Comment

ID: 7174922
panel1.color := $RHexValueGHexValueBHexValue;

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

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

meikl ;-)

Expert Comment

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 get the picture ;)


Accepted Solution

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.

Author Comment

ID: 7178155
Thanks. That's what I wanted.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In an interesting question ( here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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