Automatic High DPI scaling

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36838
    mikerabat
    Participant

    Hi!

    We are now on the brick to change our software to be High DPI aware which comes with a few implications

    (of course 😉 ) like automatic scaling of image lists and nice scaling of grids and such.

    One that I was not yet able to solve is how to scale the skins?

    That means how e.g. can I scale a radiobutton image that has originally been setup for 96 dpi

    but looks VERY small on a 192dpi screen? As far as I can see in the code alpha control

    uses the bitmap sizes stored in the skinning file but does not scale it according to

    the operating system setting right?

    Is there anyone who can help?

    kind regards

    Mike

    #54666
    jimsweb
    Participant
    #54672
    mikerabat
    Participant
    'jimsweb' wrote:

    This is exactly what we want to achive – making our

    application high dpi aware. This also means that

    there is some manual coding to do like scaling

    of the image lists and such. (if you look close the

    unskinned image in the radiobutton is larger than the

    skinned one)

    By the way his problems are not gone! The Form.scaled

    and the high dpi aware stuff indeed does scale all

    the fonts and labels such that their size is the same

    on low and high dpi systems but due to the skinning

    the size of the caption bar and e.g. the size of the

    radio button is not scaled (though it's font is scaled).

    So for it looks the issue is more or less the non scaling

    of the base bitmaps that are used for scaling. I think the

    issue could be solved if I could create a second (and third) skin

    based on the original (96dpi) but I don't know how to easily do that.

    Or the components scale the bitmap according to the setting.

    Note my laptop has 192dpi and is scaled to 200% – the effects

    are quite large here (very small caption bar and very small

    chekboxes/radio button images)[attachment=7572:checkbox_radio.png]

    #54673
    jimsweb
    Participant

    it's sad that alpha controls are not high DPI aware. Hope, one day we might be able to get high DPI aware controls. waiting for support team to respond here.

    #54682
    Support
    Keymaster

    Hello

    I'm planning to make support of additional big glyphs in the next Beta version (v11).

    I hope, this version will be ready soon and AlphaSkins will have a better look and feel with “big fonts” mode.

    #54688
    mikerabat
    Participant
    'Support' wrote:

    Hello

    I'm planning to make support of additional big glyphs in the next Beta version (v11).

    I hope, this version will be ready soon and AlphaSkins will have a better look and feel with “big fonts” mode.

    Thats VERY cool thanks!

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