Scale mode for child forms and dialogs

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37605
    fratod68
    Participant

    Hello Forum,

    I have a small Problem with scaling of child forms and Dialogs.

    I use Version 12.17 of AC. Delphi XE3.

    I set the scale mode of the main form to sm125 at designtime. When I call the child form with the ShowDialog method, the firs time that the Dialog appears it appears as not scaled.

    I tried to call the commands hide/Show/hide before the ShowDialog method and the form appears as scaled.

    I think it is because the form is created before the Skin engine get active.

    I tried to call refresh and redraw, but without success. The only Thing that helps is Show/Hide. But this causes a strange effect in front of the user.

    The second time I call ShowDialog the Dialog appears as scaled.

    What can I do to force the redraw in Background?

    I hope someone can help!

    #57096
    Support
    Keymaster

    Hello!

    Try to place the TsSkinProvider on the child form, maybe it helps?

    Otherwise, maybe you can share a demo with problem, which may be debugged?

    #57101
    fratod68
    Participant

    I added now the SkinProvider component on every form that is present in the Project and linked it with the SkinManager of the Main Form.

    It reacts very well. I don' t even Change any of the properties of the forms. Just insert the component in the form.

    When I change the Skin or the scale mode in the main form, all other forms are set accordingly, without writing extra Code.

    Many thanks for the Support!

    Best Regards,

    Francesco

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