Delphi XE8 styles do not work with TFrames? How to fix this?

青春壹個敷衍的年華 提交于 2019-12-10 11:58:45

问题


I use TFrames. I make them dynamically by adding them to the Form window. I chose the style called "Glow" (others also). I launched the program and the style works only on the main Form window, they do not work on the controls TFrame. Why?

I tried to add: TStyleManager.SetStyle for the Frame Form but with no effect.


回答1:


I have fixed this bug. If you will change Frame Form Color property manually, it will make a bug. You must select your Frame and go to properties and turn on the ParentBackgroud field (choose true) and you can also turn on the ParentColor too. Now Styles must work.



来源:https://stackoverflow.com/questions/32058017/delphi-xe8-styles-do-not-work-with-tframes-how-to-fix-this

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