Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adjust for dpi settings
#6
Try
when drawing a text string
Macro Macro3050
Code:
Copy      Help
POINT p.x=100; p.y=100 ;;example: text coordinates at 100% text size

POINT pScaled=p
DpiScale pScaled 1
out F"{pScaled.x} {pScaled.y}"
;then draw text at point pScaled

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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)