?
Solved

XPManifest makes controls transparent

Posted on 2006-04-29
4
Medium Priority
?
655 Views
Last Modified: 2007-12-19
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


0
Comment
Question by:peterharris
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
mikelittlewood earned 1500 total points
ID: 16568842
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
 

Author Comment

by:peterharris
ID: 16569290
Thanks for the suggestion but I am sure the solution I used previously was simpler than that.  

Peter
0
 

Author Comment

by:peterharris
ID: 16569375
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
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 16570729
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

840 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