Delphi XE8 styles do not work with TFrames? How to

2019-06-12 06:01发布

问题:

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.