问题
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?
回答1:
set parentcolor of the groupbox to true
回答2:
I solved setting at runtime the Parent property of the GroupBox.
来源:https://stackoverflow.com/questions/13305797/transparent-background-color-in-tgroupbox-delphi