Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Change colour of a panel

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
Freerider
Asked:
Freerider
1 Solution
 
kretzschmarCommented:
panel1.color := $RHexValueGHexValueBHexValue;

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

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

meikl ;-)
0
 
CynnaCommented:
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
 
alanwhincupCommented:
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
 
FreeriderAuthor Commented:
Thanks. That's what I wanted.
-Freerider
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now