问题
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