Ian Branch 127 Posted May 8, 2022 Hi Team, Using the Delphi Themes I have Iceberg Classico enabled in the project Appearance settings but Windows set as the default. If I now add the following to the project file.. // TStyleManager.UseParentPaintBuffers := True; TStyleManager.TrySetStyle('Iceberg Classico'); // The default in Appearance gets changed to Iceberg Classico. If I then change it back to default to Windows, the project file changes to this.. // TStyleManager.UseParentPaintBuffers := True; // What the!!!! Is this simply my lack of understanding, in which case how do I achieve what I am trying to do? i.e. have the project in Windows theme during IDE development, and change to Iceberg Classico at run time. Or, is this a bug?? Regards & TIA, Ian Share this post Link to post
Uwe Raabe 2057 Posted May 8, 2022 Since Delphi 11 the Form Designer adapts to the theme set in the Appearance settings if the corresponding option is enabled. Quote Enable VCL Styles When enabled, VCL controls draw using VCL styles set for the form or control, matching their look at runtime. Share this post Link to post
Ian Branch 127 Posted May 8, 2022 Hi Uwe, Yes, it caught me out. I am now setting the theme first thing in the 'Create' of the Main form rather than the project file. Works fine. Regards & Tks, Ian Share this post Link to post