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)
Asked
Active
Viewed 4,231 times
5
-
Panel.Visible := False;? – Hidden Jul 01 '13 at 13:15
-
AFAIK: Hides the controls placed on the panel. – Tom Jul 01 '13 at 13:33
-
@Tom it hides the panel **and** the child controls – Sir Rufo Jul 01 '13 at 15:06
-
TPanel has a Windows handle. Controls with windows handles will fight you to the death to remain non-transparent. You'll have to use another control -- TShape? TBevel? TPaintBox? – Nick Hodges Jul 01 '13 at 15:56
-
3@NickHodges FireMonkey ;) – Sir Rufo Jul 01 '13 at 17:11
-
1As Slomoto's answer, use a TLayout, or set Fill.Color and Stroke.Color to claNull. – Mike Sutton Jul 02 '13 at 09:33
2 Answers
2
You can use almost any object opacity for that, for example:
Panel1->Opacity=0.5;
-
The question states that Opacity is for animations, and that it doesn't work – matsjoyce Oct 06 '14 at 16:32