trouble initializing skin name at program start

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34277
    Tidetracker
    Participant

    Using version 7.25 at the moment.

    I have no problem changing skins at run time, but I can't seem to set the skin when my program starts. If I include the line: 'sSkinManager.SkinName:='WMP11 (internal)'; in the main form activate event, it generates an exception error. I have no problem doing that AFTER the main form appears, but I need to be able to specify the skin name when the program starts, before the form is displayed on the screen.

    (What I'm trying to do here is to make the selected skin persistent, by storing it's name in the registry, and retrieving it at program start).

    Any suggestions? Why can't I write to the SkinName property at the beginning of program execution?

    Thanks.

    #44489
    Support
    Keymaster

    Hello

    Skins may be initialized without problem in the Form.OnCreate event. I can't say why you have this error while I not see a code..

    Maybe you can show me an example?

    Try OnCreate or OnShow events.

    #44492
    Tidetracker
    Participant

    Thanks. It works fine in the 'onCreate' event. For whatever reason, it wasn't working in the 'Form activate' event.

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