TsComboBox DPI scaling

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37543
    Stephane Senecal
    Participant

    The seems to be something wrong with TsComboBox dpi scaling with Delphi 7.

    I have a TsSkinManager and a TsComboBox on a form.

    SkinManager.Options.ScaleMode is set to smAuto and Active is set to True with a valid skin.

    Form.Scaled is set to False.

    In the event FormCreate, I do SkinManager.UpdateScale(Self);

    The Height of the combobox is not enlarge to fit the new font height.

    I have made a test in Delphi 10.1 Berlin and it doesn't seems to have the bug. So you'll have to test it with Delphi 7.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #56922
    Support
    Keymaster

    Hello

    The TsSkinProvier component should be placed on the form. Please, try it.

    #56923
    Stephane Senecal
    Participant

    I can't add a TsSkinProvider on a TFrame. They do already have a TsFrameAdapter.

    Those frames are created at run-time.

    The main form on which they stand does have a TsSkinProvider, but I supose it doesn't work because they are created on the fly.

    Any advice?

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #56925
    Support
    Keymaster

    If you have a test-application, can you upload it, please?

    I'm trying to repeat this issue, but something is wrong, seems.

    #56926
    Stephane Senecal
    Participant

    It wasn't easy but I managed to reproduce it in a small project.

    Edit: I forgot to say that I managed to fix my problem by calling UpdateScale right after the creation of the frame.

    Edit2: You might notice another problem in the demo with the title icon being cropped in high dpi.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #56927
    Support
    Keymaster

    Thank you, I will check it soon.

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