GetSkinIndex Call

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36817
    standay
    Participant

    When does a call to GetSkinIndex become >= 0? I've tried calling it in the SkinManager AfterChange event but if I do that when the app first loads it seems to not be available (GetSkinIndex is -1). If I call it later from, say, my app idle or a dropdown menu it works as expected (GetSkinIndex is 0 or more).

    #54593
    Support
    Keymaster

    Current skin must be loaded (sSkinManager1.Active property should be True and SkinName is sSkinManager1.correct).

    If skin is not loaded yet, then array of sections is empty and all SkinIndexes will be -1.

    #54595
    standay
    Participant
    'Support' wrote:

    Current skin must be loaded (sSkinManager1.Active property should be True and SkinName is sSkinManager1.correct).

    If skin is not loaded yet, then array of sections is empty and all SkinIndexes will be -1.

    OK, is there any event that fires or a property I can check that tells when the skin is loaded for sure? Something like an OnSkinLoaded event? I know there isn't one but is there anything that acts like that? Or should I just repeat the GetSkinIndex call until it is >= 0?

    Thanks!

    #54597
    Support
    Keymaster

    Yes, try to use the sSkinManager1.OnActivate property.

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