sSkinManager.SkinDirectory

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37662
    bswift
    Participant

    Hello….I have an app the has its own appdata folder. The path looks like this:

    C:Users”UserName”AppDataRoamingMyAppNameSkins

    I invoke this path at Main.FormCreate

    Code:
    Path:=GetSpecialFolder(rtAppData)+'MyAppNameSkins';
    sSkinManager1.SkinDirectory:=Path;
    aSkin:=ReadStr('Skins','Name');//aSkin is global var read from ini file.
    sSkinManager1.SkinName:=aSkin;

    While debugging the path variable is correct but does not set SkinDirectory path….it always reverts to C:Skins.

    How can I force it to use my Path var??

    I am using the version 12.19

    #57293
    Support
    Keymaster

    Hello!

    I'm trying to make a test-application with described problem.

    Your code placed into the OnCreate event of the form and works..

    Maybe, you can make such test-application where I can see the problem?

    #57307
    bswift
    Participant
    'Support' wrote:

    Hello!

    I'm trying to make a test-application with described problem.

    Your code placed into the OnCreate event of the form and works..

    Maybe, you can make such test-application where I can see the problem?

    OK…this is what I had to do:

    Empty all internal skins…Set sSkinmanager active to false. New code:

    Code:
    aPath:=GetSpecialFolder(rtAppData)+'MyAppSkins';
    sSkinManager1.SkinDirectory:=aPath;
    sSkinManager1.Active:=true;<--------Works perfect now!

    Does this make sense or am I missing something.

    I do love these components!!!

    #57310
    Support
    Keymaster
    'bswift' wrote:
    Does this make sense or am I missing something.

    I need to repeat the issue, but can't, unfortunately.

    if you can make a small test-app with a same problem – will be great.

    Quote:
    I do love these components!!!

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.