Scaling problem in windows 10

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #69628
    RJ
    Participant

    I made a scaling option with DPI changing in my project and works ok. Only the font in the TAdvSmoothPanel from TMS is not scaling properly. I found out that it only works with the windows 10 setting 100%. When this is set to 125% then all the Alpha components are scaling properly but the font in TAdvSmoothPanel not. Can you help me with this. Is this not taken along in the scaling function of Alhaskins?

    Regards
    Robert

    Attachments:
    You must be logged in to view attached files.
    #69640
    Support
    Keymaster

    Hello
    This component should support standard ScaleBy function for correct scaling.
    I will check it soon.

    #69770
    RJ
    Participant

    Hello,

    Can you help me with this or a work around like detecting the 100 or 125% in windows. I dont know hou to do that.

    thanks in advance

    #69860
    Rafał Drzewiecki
    Participant

    Follow up on TMS

    Does your TAdvStringGrid work properly if so, what version of this component do you have?

    #69861
    RJ
    Participant

    I am using version 5.0.3.0 from TAdvStringGrind but i exclude this component from skinning because the look is not what i want. I still looking for a way to detecting what % the customer is running on his PC. Do you know how to do that?

    Regards

    Robert

    #69862
    Support
    Keymaster

    Hello
    If you have the TsSkinProvider component placed to the form, then you can receive a current PPI used by skin engine for this form: sSkinProvider1.SkinData.CurrentPPI

    Also, you can try this function:
    function GetControlPPI(Ctrl: TControl): integer;
    It’s declared in the sVCLUtils unit.

    #69876
    RJ
    Participant

    Hello,
    GetControlPPI works i can correct the problem with TAdvSmoothPanel.
    What i see also is that the pictures in the messagedlg are not resized correctly. See the attachments with different windows settings. How can i correct this?

    Regards
    Robert

    Attachments:
    You must be logged in to view attached files.
    #69879
    Support
    Keymaster

    Hello, Robert! I will try to fix this issue with scaled icon soon.

    #69882
    Support
    Keymaster

    Hello, Robert! Do you use the Windows 7?

    #69883
    RJ
    Participant

    No i am running Delphi 7 on win10

    Regards Robert

    #69884
    Support
    Keymaster

    I was asking because I’m not able to repeat it with Delphi 7 and Windows 10.
    Maybe you can give a demo?

    #69885
    RJ
    Participant

    Here is the small demo. When change in windows to 150% and then run the demo you will see that the picture is not ok.
    Hope this helps.

    Attachments:
    You must be logged in to view attached files.
    #69887
    Support
    Keymaster

    Thank you! I see it and I hope to improve it soon.

    #70135
    Support
    Keymaster

    Hello!
    I have researched it and see that image is drawn by Delphi and changing of this behavior is difficult.
    I can suggest to use the sMessageDlg procedure which is declared in the “sDialogs” unit.
    Drawing in this dialog is more correct and buttons captions are localized automatically.

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