Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set TPanel transparent?

When placing the TPanel component in designer, it seems it can not be made transparent? There's an opacity option, but that only deails with animations. I want the panel itself to be fully transparent, so I can see the image underneath. (I want to use the panel as a way of control layout of the controls placed on it)

like image 537
Tom Avatar asked Jul 01 '13 13:07

Tom


2 Answers

Use TLayout or TRectangle instead of TPanel.

like image 133
AvgustinTomsic Avatar answered Oct 19 '22 10:10

AvgustinTomsic


You can use almost any object opacity for that, for example:

Panel1->Opacity=0.5;
like image 2
Rancho Avatar answered Oct 19 '22 10:10

Rancho