XPManifest makes controls transparent

I have previously found the answer to this but lost it and despite extensive googling and EE search I cannot find it again!

It is a problem with Delphi 7 and XPManifest which causes all Controls to appear transparent when compiled.   I want to set a Tlabel with a background color but as soon as I add the XPManifest component the background color disappears.

The solution I found previously involved altering some property of the label at runtime

A link to a solution was posted on EE by DragonSlayer but the link no longer works

##############################
 Here's the solution, and the cause:
http://support.soft-gems.net/phpBB2/viewtopic.php?t=506


DragonSlayer.
##############################

Can anyone point me in the right direction

Thanks


peterharrisAsked:
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.

 
mikelittlewoodCommented:
There is a problem with the parent background property of some components.
You might if I remember right need to change the property of the component behind the label, compile, then change it back and recompile.
0

Experts Exchange Solution brought to you by ConnectWise

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
 
peterharrisAuthor Commented:
Thanks for the suggestion but I am sure the solution I used previously was simpler than that.  

Peter
0
 
peterharrisAuthor Commented:
I have found the answer to my own question.   There appear to be 2 different problems with different solutions.

For a TPanel component this works:

procedure TForm1.FormCreate(Sender: TObject);
begin
  panel1.ControlStyle := panel1.ControlStyle - [csParentBackground];
end;

However it doesnt work for a TLabel but this does  (it may be what you were suggesting)

Set Label.parentcolor = False
Set Label.Color = clwhatever

If you compile and run now it still doesnt show the label color.

However,  if you set Label.Transparent to True and then back to False and recompile it works OK

Anyone got any idea what's going on?

Peter
0
 
mikelittlewoodCommented:
Yes its the same sort of problem I believe.
I read some notes on the subject a while back and I have answered previous questions on along the same lines.
As far as I remember it is just a bug with TXPManifest which Borland wrote an article on.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.