Create SkinManager dynamically?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34406
    ralfiii
    Participant

    I'm posting that now even though I found a solution while I was writing that.

    Maybe my posting helps someone else to safe time in the future.


    I need to equally skin a set of applications.

    Therefore I thought it might be helpful to have a function “procedure AddSkinning(MainFrm : TForm)” that dynamically creates the SkinManager and sets the properties equally on all apps I skin.

    I tried to dynamically create the SkinManager but the form is messed up completely after loading.

    I found the reason!!! :a3:

    When the SkinManager is created by code, then the method “Loaded” is not called.

    You need to call “Loaded” manually after settings the properties. Then everything works fine.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.