Jump to content
Ian Branch

Theme issue...

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×