To use 2 skins in Delphi 2009 Application – How I do?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32792
    Rafael Pereira
    Participant

    Hi!

    I wanna use two skins in my application: skin “Golden.asz” in main form and descending, and other (“Cappuccino.asz”) to popup forms.

    When I changed the skin to create a popup (like “Find employee” in a “Login create” form), the AC 6 changes visual of all visibles forms.

    I already use the commands “LgnCreate := TLgnCreate.Create( Application )” and “Application.CreateForm( TLgnCreate, LgnCreate )” and both results is always same.

    Anybody help me???

    Tks… and sorry me for my bad english!

    #38477
    Neon
    Participant

    You should use two different TsSkinManager components and set one to Golden skin and another to Capuccino.

    #38483
    Rafael Pereira
    Participant

    QUOTE (Neon @ Mar 29 2009, 03:54 PM)
    You should use two different TsSkinManager components and set one to Golden skin and another to Capuccino.

    Hi!

    I already tried this solution, but don't works!
    This too change both forms: main and popup!

    I put “Skin2.Active := True” in popup section “Create”, this is correct?

    Tks!

    #38486
    Neon
    Participant

    Then put a TsFormProvider to the form and set it to TsSkinManager you need. I hadn't this problem you described, all worked well…

    #38513
    Support
    Keymaster

    QUOTE (Neon @ Mar 30 2009, 09:24 PM)
    Then put a TsFormProvider to the form and set it to TsSkinManager you need. I hadn't this problem you described, all worked well…

    Yes, you must define a TsSkinProvider for each form and define there a SkinManager which must be used.

    #38713
    Rafael Pereira
    Participant

    QUOTE (Support @ Apr 1 2009, 10:13 AM)
    Yes, you must define a TsSkinProvider for each form and define there a SkinManager which must be used.

    Hi, all!
    Perfect, the visual form works now!

    I put a “TsSkinProvider” in popup form and adjust “SkinData.SkinManager := FrmLogon.SkinForm2”.
    Note: the FrmLogon.SkinForm2 should be set actived (“Active := True”).

    Tks for all!

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