Scale Mode Request

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37108
    TAZ
    Participant

    I am slowing down on my requests. This one would be very beneficial.

    When you start an application and the ScaleMode is smAauto, you can use GetScale to read the equivalent percent value (100, 125 or 150).

    Popup menu structure looks like this:

    100%
    125%
    150%


    * Auto (125%)

    However, if you start the application and the ScaleMode is either sm100, sm125 or sm150, you cannot read what the default value is for auto. Would nice to have something like GetAutoScale.

    100%
    * 125%
    150%


    Auto (?%)

    It is not a show stopper, but it would be nice. Thanks either way.

    I have learned a lot about scaling these past few weeks. It has not been easy, but with 4K monitors in play now you have to learn and utilize this.

    #55500
    Support
    Keymaster

    For receiving of the current system scale value you can use such code:

    Code:
    CurrentScale := aScalePercents[sSkinManager1.SysFontScale]

    Add “sConst” into “uses”.

    #55502
    TAZ
    Participant

    It did the trick.

    actToolsScaleModeAuto.Caption := 'Auto (' + IntToStr(aScalePercents[smMain.SysFontScale]) + '%)';

    Thank you very much.

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