Problem with TForm.Create

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #37779
    Holger
    Participant

    If I create a new form in the main form:

    form2 = TForm2.Create(Self);

    form2.parent := Self

    form2.Show;

    and then create another form in form2:

    form3 = TForm3.Create(Self);

    form3.parent := Self

    form3.Show;

    is form3 without skin!

    #57706
    Support
    Keymaster

    Hello!

    I will try to improve it in the v13.03

    As a quick solution, I can suggest to place the TsSkinProvider component on the child forms.

    #57710
    mol
    Participant

    No need for improvement here, Serge. Creating a form within a form within a form is just bad coding style. Holger, instead of TForm, use TFrame. That's what they are there for.

    -Uwe

    #57711
    Holger
    Participant

    Thanks for the advice! The one with the frames would certainly be a solution.

    However, child forms should already be possible. This is currently not possible with TsSkinProvider on any other form (RX2, Vers. 13.02 Beta). In version 10.13 it still works, even without TsSkinProvider!

    Thank you for your attention!

    #57713
    Holger
    Participant

    Thanks to the support for the quick solution! As far as I can tell, there don't seem to be any problems now!

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