12-29-2015, 07:27 PM
Is there a simple way to adjust a dialog's text and images in case the user has dpi different than 96?
adjust for dpi settings
|
12-29-2015, 07:27 PM
Is there a simple way to adjust a dialog's text and images in case the user has dpi different than 96?
12-30-2015, 07:42 AM
To adjust text size, log off/on Windows. To adjust images, there isn't a simple way.
12-31-2015, 09:22 PM
what about a way to have the dialog not use dpi settings and display at 96dpi?
01-01-2016, 08:18 AM
These items are automatically resized or not:
1. Dialog font size - yes. 2. Size/position of dialog controls and dialog itself - yes. 3. Images - no. Which of these items you want to resize (make bigger when DPI>69), and which should be always the same size?
04-23-2018, 10:32 PM
im am once again revisiting this topic
i have i dialog that uses gdi+ to draw text and when the dpi text scaling is anything over 100% the text positions are all messed up text scaling 100% text scaled 125% How to fix the text so it displays where i want it to when text scaling is 100%? do any of the qm dpi functions help me solve this problem? or are their any other solutions? any advice would be appreciated
Try
when drawing a text string Macro Macro3050 POINT p.x=100; p.y=100 ;;example: text coordinates at 100% text size Or let Windows auto-scale windows of your program. For it need to edit .manifest file of your .exe file: remove the XML that makes the program DPI-aware. But it creates other problems: 1. The window may not look so good. 2. Cannot be used many QM functions that automate other windows. 3. Maybe more.
thanks for your reply . i see i had a typo on my question
Should have been How to fix the text so it displays where i want it to when text scaling is not 100%? also i am using GDIP.RectF coordinates for the text in my dialog . for example GDIP.RectF r r.X=20; r.Y=10 how should i convert these? other RectF constructors PointF, Real, or some other way? or redo all the coordinates in Point?
Function GdipScaleRectF
function GDIP.RectF&r test Macro Macro3051
04-24-2018, 08:51 PM
Thanks Gintaras its working perfectly
Have 1 more Question Im trying to get the width of the client area and then minus the length of a text string from the width to get the y coordinate as i have 4 lines of text that are drawn on the right side of the window. but havent been able to sort out how to convert to
04-24-2018, 09:10 PM
r.X=k.left; r.Y=k.top; r.Width=k.right-k.left; r.Height=k.bottom-k.top
|
« Next Oldest | Next Newest »
|