When you dynamically load/create a frame, the TAdvFormStyler cannot know this.
Therefore, after dynamic creation of controls/frames, call AdvFormStyler.ApplyStyle to have all controls in sync for their style.
TAdvFormStyler belongs on a TForm or descendent. So, put TAdvFormStyler on the form hosting the frame and AFTER you created the frame at runtime (and set the frame parent), call AdvFormStyler.ApplyStyle for the AdvFormStyler on the form that hosts the frame.
Thanks for your help, with a bit forth and back I got it working now and update all the sub frames. One mistake I made was also that I did not place the components on a panel in the frame, so a lot of the parent-inheritance did not work but left the color wrong.
Could you tell us for which components you see this border color?
Sure. I tested a handful and found these with BorderColor set to default clSilver resp. $00ABABAB:
The TAdvGroupBox, TAdvOfficeRadioGroup and TAdvOfficeCheckGroup followed the border color of the TGroupBox. The color clWindowFrame is much darker than the border color used in TGroupBox.
Gjalt Vanhouwaert2020-02-12 15:52:12
Thanks, excellent! I am testing resp. changing my application's GUI with some other components I did not use before, testing against style 2019 light / medium / dark. Should I collect my findings, then open a new thread?
We've changed it for the AdvTrackBar as well.
You can start a new thread or mail your remarks to us.