Transparent background color in TGroupBox - DELPHI

别说谁变了你拦得住时间么 提交于 2019-12-13 14:31:49

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!