[DUG] Windows 10 issues
Dennis Chuah
dennis_cs_chuah at hotmail.com
Thu Jul 30 11:01:01 NZST 2015
> Also for Delphi programmers – Windows 10 ... it seems to stretch the
> window/form sizes but does NOT change the DPI setting...
This is the standard behaviour since Windows 7 (Vista?). Essentially, any
applications that are not DPI aware will be stretched. You can enable DPI
awareness either by a WinApi call (SetProcessDPIAware) or through your
application manifest but then you run into VCL issues with non 96-dpi
setting - remember the large font issue in Windows XP? Essentially to get
DPI-aware working in Delphi, you will need to either call the WinApi
function or change the application manifest AND you will need to scale your
forms, scale controls on the forms and scale your font size appropriately.
You will also need to scale your graphics (and have a set of different
resolution graphics for different DPI's). From Win8.1 onwards, you will also
need to respond to a message (WM_DPICHANGED) about dynamic DPI changes -
different monitors can have different DPI settings. (Call
SetProcessDPIAwareness instead). It is all not a trivial exercise.
Dennis.
From: John Bird
Sent: Thursday, July 30, 2015 9:37 AM
To: 'delphi at listserver.123.net.nz'
Subject: [DUG] Windows 10 issues
Upgraded to Windows 10 on my personal Delphi PC last night, had already
played with it at work and all seemed OK. Although the upgrade worked, it
sort of turned to custard as email and Delphi and Browsing were not working
afterwards:
· A standard HP ended up with no working network or wireless driver,
so googling and downloading updated drivers if available was not an option
· Delphi 2007 does not run (it loads but cannot display any
projects and complains about .NET 2.5) – seems to require .Net 2.5 which is
not on Windows 10 . Does anyone know if this can be downloaded separately?
Or if I have the Delphi 2007 installer will reinstalling fix this?
· Also for Delphi programmers – Windows 10 seems does settings
differently around increasing text size – under “Screen resolution” and
“Make text and other items larger or smaller” it seems to stretch the
window/form sizes but does NOT change the DPI setting. This means the
fonts on Delphi forms becomes smudged. I had some quite good workarounds
for sizing grids/column widths/fonts when text size was set to 125% but
these will have to be revisited for Windows 10
John Bird |HealthOne Programmer | Pegasus Health (Charitable) Ltd
P: (03) 379 1739 | W: www.pegasus.org.nz | E:
john.bird at pegasus.org.nz
P O Box 741, Christchurch 8140 | 160 Bealey Ave, Christchurch 8014
*****************************************************
This email or attachment(s) may contain confidential or legally privileged
information intended for the sole use of the addressee(s). Any use,
redistribution, disclosure, or reproduction of this message, except as
intended, is prohibited. If you received this email in error, please notify
the sender and erase all copies of the message, including any attachments.
Any views or opinions expressed in this email (unless otherwise stated) may
not represent those of Pegasus Health Ltd.
**********************************************************
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
Subject: unsubscribe
More information about the Delphi
mailing list