<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff size=2>Set
ParentBackground := False in code (like in the OnCreate) and it'll be
fine.</FONT></SPAN></DIV>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff
size=2>example unit and form follows;</FONT></SPAN></DIV>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff
size=2>Compiled in D7 - how anyone could go back to D7 after using D2005 is
beyond me...</FONT></SPAN></DIV>
<DIV><SPAN class=524451501-19042005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><SPAN class=524451501-19042005><FONT
size=+0>======================</FONT></SPAN></SPAN></FONT></FONT></FONT><FONT
face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>unit xpUnit1;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>interface</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>uses<BR> Windows, Messages, SysUtils, Variants,
Classes, Graphics, Controls, Forms,<BR> Dialogs, ExtCtrls,
XPMan;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>type<BR> TForm1 =
class(TForm)<BR> XPManifest1:
TXPManifest;<BR> Panel1: TPanel;<BR>
procedure FormCreate(Sender: TObject);<BR> private<BR> {
Private declarations }<BR> public<BR> { Public
declarations }<BR> end;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>var<BR> Form1:
TForm1;</SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>implementation</SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>{$R *.dfm}</SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>procedure TForm1.FormCreate(Sender:
TObject);<BR>begin<BR> Panel1.ParentBackground :=
False;<BR>end;</SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005>end.<BR></SPAN><SPAN
class=524451501-19042005><FONT></FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT>======</FONT></SPAN></FONT></FONT></FONT><FONT
face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT>================</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT>object Form1: TForm1<BR> Left =
319<BR> Top = 363<BR> Width = 439<BR> Height = 316<BR>
Caption = 'Form1'<BR> Color = clBtnFace<BR> Font.Charset =
DEFAULT_CHARSET<BR> Font.Color = clWindowText<BR> Font.Height =
-11<BR> Font.Name = 'MS Sans Serif'<BR> Font.Style = []<BR>
OldCreateOrder = False<BR> OnCreate = FormCreate<BR> PixelsPerInch =
96<BR> TextHeight = 13<BR> object Panel1:
TPanel<BR> Left = 32<BR> Top =
16<BR> Width = 361<BR> Height =
129<BR> Caption = 'Some text here'<BR> Color
= clRed<BR> Font.Charset =
DEFAULT_CHARSET<BR> Font.Color =
clWindow<BR> Font.Height = -11<BR> Font.Name
= 'MS Sans Serif'<BR> Font.Style =
[fsBold]<BR> ParentFont = False<BR> TabOrder
= 0<BR> end<BR> object XPManifest1:
TXPManifest<BR> Left = 208<BR> Top =
184<BR> end<BR>end</FONT></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT></FONT></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN
class=524451501-19042005><FONT>=======================================</DIV></FONT></SPAN></FONT></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Ross Levis
[mailto:ross@stationplaylist.com]<BR><B>Sent:</B> 19 April 2005 7:56
AM<BR><B>To:</B> NZ Borland Developers Group - Delphi List<BR><B>Subject:</B>
[DUG] D7 TPanel.Color<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I'm converting my D5 app to D7 and I have only
one problem. I have a spashscreen with a small panel displaying some
text showing what is loading etc. I have the Panel Color set to a
specific colour which looks fine at design time but changes to the forms
colour at runtime. I am using a Windows XP manifest. I can't find
any properties on the control to fix it. Should I be using some other
control, perhaps a read only TEdit?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000>Regards,<BR>Ross
Levis.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.stationplaylist.com">http://www.stationplaylist.com</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>