<!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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>uses<BR>&nbsp; Windows, Messages, SysUtils, Variants, 
Classes, Graphics, Controls, Forms,<BR>&nbsp; Dialogs, ExtCtrls, 
XPMan;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>type<BR>&nbsp; TForm1 = 
class(TForm)<BR>&nbsp;&nbsp;&nbsp; XPManifest1: 
TXPManifest;<BR>&nbsp;&nbsp;&nbsp; Panel1: TPanel;<BR>&nbsp;&nbsp;&nbsp; 
procedure FormCreate(Sender: TObject);<BR>&nbsp; private<BR>&nbsp;&nbsp;&nbsp; { 
Private declarations }<BR>&nbsp; public<BR>&nbsp;&nbsp;&nbsp; { Public 
declarations }<BR>&nbsp; end;</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>var<BR>&nbsp; Form1: 
TForm1;</SPAN></FONT></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>implementation</SPAN></FONT></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>{$R *.dfm}</SPAN></FONT></FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005>procedure TForm1.FormCreate(Sender: 
TObject);<BR>begin<BR>&nbsp; Panel1.ParentBackground := 
False;<BR>end;</SPAN></FONT></FONT></FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><FONT color=#0000ff><SPAN 
class=524451501-19042005><FONT>object Form1: TForm1<BR>&nbsp; Left = 
319<BR>&nbsp; Top = 363<BR>&nbsp; Width = 439<BR>&nbsp; Height = 316<BR>&nbsp; 
Caption = 'Form1'<BR>&nbsp; Color = clBtnFace<BR>&nbsp; Font.Charset = 
DEFAULT_CHARSET<BR>&nbsp; Font.Color = clWindowText<BR>&nbsp; Font.Height = 
-11<BR>&nbsp; Font.Name = 'MS Sans Serif'<BR>&nbsp; Font.Style = []<BR>&nbsp; 
OldCreateOrder = False<BR>&nbsp; OnCreate = FormCreate<BR>&nbsp; PixelsPerInch = 
96<BR>&nbsp; TextHeight = 13<BR>&nbsp; object Panel1: 
TPanel<BR>&nbsp;&nbsp;&nbsp; Left = 32<BR>&nbsp;&nbsp;&nbsp; Top = 
16<BR>&nbsp;&nbsp;&nbsp; Width = 361<BR>&nbsp;&nbsp;&nbsp; Height = 
129<BR>&nbsp;&nbsp;&nbsp; Caption = 'Some text here'<BR>&nbsp;&nbsp;&nbsp; Color 
= clRed<BR>&nbsp;&nbsp;&nbsp; Font.Charset = 
DEFAULT_CHARSET<BR>&nbsp;&nbsp;&nbsp; Font.Color = 
clWindow<BR>&nbsp;&nbsp;&nbsp; Font.Height = -11<BR>&nbsp;&nbsp;&nbsp; Font.Name 
= 'MS Sans Serif'<BR>&nbsp;&nbsp;&nbsp; Font.Style = 
[fsBold]<BR>&nbsp;&nbsp;&nbsp; ParentFont = False<BR>&nbsp;&nbsp;&nbsp; TabOrder 
= 0<BR>&nbsp; end<BR>&nbsp; object XPManifest1: 
TXPManifest<BR>&nbsp;&nbsp;&nbsp; Left = 208<BR>&nbsp;&nbsp;&nbsp; Top = 
184<BR>&nbsp; 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>&nbsp;</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.&nbsp; I have a spashscreen with a small panel displaying some 
  text showing what is loading etc.&nbsp; I have the Panel Color set to a 
  specific colour which looks fine at design time but changes to the forms 
  colour at runtime.&nbsp; I am using a Windows XP manifest.&nbsp; I can't find 
  any properties on the control to fix it.&nbsp; Should I be using some other 
  control, perhaps a read only TEdit?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>