11 Vote

Delphi: Prevent Transparency of TPanel with XPManifest

Tip by Delphian | 2012-08-09 at 15:10

If we add the XP Manifest to our Delphi application, this has the nasty aftertaste that each panel is transparent and loses its color.

If this is not wanted, simply add the following code to your FormCreate:

procedure TForm1.FormCreate(Sender: TObject);
begin
   Panel1.ParentBackground:=false;
end;

And already, the panel regains its color.

ReplyPositiveNegative

About the Author

AvatarThe author has not added a profile short description yet.
Show Profile

 

Related Topics

Android Splash Screen Tutorial

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.