Pergunta

How can i set transparent background color in TGroupBox?

In my Delphi's form I have a GroupBox and a Panel (graphically overlaid).
I wrote a procedure to draw a gradient fill on the Panel using Rect. It works!
Now I have another problem: GroupBox backgound color descends from the Form but I wish it was the same of Panel. I can't put GroupBox into Panel because draw procedure fill the entire Panel area (also GroupBox).
Is there a way (by code) to set trasparent background color of GroupBox?

Foi útil?

Solução 2

I solved setting at runtime the Parent property of the GroupBox.

Outras dicas

set parentcolor of the groupbox to true

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top