TPrintPreview on high DPI with external monitor

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TPrintPreview on high DPI with external monitor

Postby wordweb » February 21st, 2016, 11:57 pm

TPrintPreview is generally great and really useful.

But I now have an odd problem with scaling. I have a high-res laptop (240 dpi), and an external standard res (120dpi) monitor. My app is DPI aware (but not per-monitor aware). When I do print preview with the program running only on the external monitor (so the program thinks it is 240 dpi, but actually Windows is scaling down), I only see half of the page rendered:

problem.png
problem.png (41.07 KiB) Viewed 101 times


I can fudge it to come out right by multiplying FDeviceExt by 2 in UpdateExtends, but that's clearly not the right thing to do in general.

There are no other problems with my app, so not sure where the inconsistency is creeping in. Screen.PixelsPerInch and the GetDeviceCaps calls are all returning consistent values (240DPI). It looks perfect running on the laptop screen.

Any ideas/fixes?

Thanks for a useful component.
wordweb
Member
Member
 
Posts: 1
Joined: February 21st, 2016, 11:23 pm

Re: TPrintPreview on high DPI with external monitor

Postby sh17 » March 16th, 2016, 1:48 pm

I'm working in this issue.
sh17
Active Member
Active Member
 
Posts: 6
Joined: September 3rd, 2013, 11:38 am


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 0 guests

cron