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?

有帮助吗?

解决方案 2

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

其他提示

set parentcolor of the groupbox to true

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top