- This topic has 13 replies, 3 voices, and was last updated 3 years, 9 months ago by
Support.
-
AuthorPosts
-
September 23, 2020 at 6:29 pm #69628
RJ
ParticipantI 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
RobertAttachments:
You must be logged in to view attached files.September 24, 2020 at 4:48 pm #69640Support
KeymasterHello
This component should support standard ScaleBy function for correct scaling.
I will check it soon.November 11, 2020 at 9:59 pm #69770RJ
ParticipantHello,
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
January 22, 2021 at 3:52 pm #69860Rafał Drzewiecki
ParticipantFollow up on TMS
Does your TAdvStringGrid work properly if so, what version of this component do you have?
January 25, 2021 at 7:37 pm #69861RJ
ParticipantI 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
January 25, 2021 at 9:15 pm #69862Support
KeymasterHello
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.CurrentPPIAlso, you can try this function:
function GetControlPPI(Ctrl: TControl): integer;
It’s declared in the sVCLUtils unit.February 1, 2021 at 9:36 pm #69876RJ
ParticipantHello,
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
RobertAttachments:
You must be logged in to view attached files.February 4, 2021 at 6:35 am #69879Support
KeymasterHello, Robert! I will try to fix this issue with scaled icon soon.
February 8, 2021 at 10:39 am #69882Support
KeymasterHello, Robert! Do you use the Windows 7?
February 8, 2021 at 5:44 pm #69883RJ
ParticipantNo i am running Delphi 7 on win10
Regards Robert
February 8, 2021 at 8:22 pm #69884Support
KeymasterI was asking because I’m not able to repeat it with Delphi 7 and Windows 10.
Maybe you can give a demo?February 16, 2021 at 9:58 pm #69885RJ
ParticipantHere 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.February 18, 2021 at 8:40 pm #69887Support
KeymasterThank you! I see it and I hope to improve it soon.
June 24, 2021 at 5:59 pm #70135Support
KeymasterHello!
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. -
AuthorPosts
- You must be logged in to reply to this topic.