TPanel on TPageControl

How do i make a TPanel show its original color clBtnFace on a Tabsheet of a PageControl?

It takes on the color of the Pagecontrol when i drop it on it. I changed the ParentCOlor to false and still the color is white

thanks
DelphiRulezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SuperdaveCommented:
Change the TPanel's color back to clBtnFace after you make ParentColor false.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DelphiRulezAuthor Commented:
yah, i did that. The problem is, is that the change  doesn't take affect.

I change the  ParentColor = False

Look and the Color property = clBtnFace.

I change it to anything else and then back to clBtnFace and the change takes affect

Interesting

anyway, thanks

0
FactorBCommented:
Panel1.ParentColor:=False;
Panel1.Color:=clBtnFace;
Panel1.Repaint;

.Repaint or .Refresh should do the trick :)

Regards,
B.
0
DelphiRulezAuthor Commented:
nah, i didn't want  to have to do it at runtime. Its taken care of now....thanks ffor responding though.
0
FactorBCommented:
Design time, now I get it :) Anyway glad that is working and you are always welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.