PDA

View Full Version : Windows 10 - Freaky Scaling issues (in non-SetupBuilder application)



NewsArchive
04-01-2017, 11:46 AM
We have a few customers that have been complaining about a problem
with window scaling of our app on their Windows 10 machines.

When a particular window would open in our app, the entire app would
shrink down, including all fonts, etc. This makes the app almost
unusable.

I haven't narrowed down the exact cause in our app that makes it
shrink yet, but at least I can duplicate the problem now - thanks to
our support staff. This one really had me befuddled.

Here is the page to look at if you see anything similar.


https://www.thurrott.com/windows/windows-10/4597/windows-10-feature-focus-display-scaling

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 11:47 AM
Jeff,

> When a particular window would open in our app, the entire app would
> shrink down, including all fonts, etc. This makes the app almost
> unusable.

Is the window in question so large that Windows needs to reduce it to
fit the device and therefore shrinks the entire APP?

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://archive.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com
CRT (cpcs) Support: crt-tech @ CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"

NewsArchive
04-01-2017, 11:47 AM
No. Disabling Scaling at High DPI on the compatability tab of the
shortcut "fixed" it.

My guess is that a com object that I call is calling
SetProcessDPIAware() or something like that.

Maybe we can fix it in the app manifest. I don't see anything in SB
about that.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633543(v=vs.85).aspx

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 11:49 AM
Jeff,

> Maybe we can fix it in the app manifest. I don't see anything in SB
> about that.

Look closer!<g>

Lee White (Lodestar Software)

NewsArchive
04-01-2017, 11:50 AM
Thanks Lee. I guess the help's screenshot hasn't caught up yet.

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 11:51 AM
Jeff,

> Thanks Lee. I guess the help's screenshot hasn't caught up yet.

Do I gotta do EVERYTHING for you?<g> Update your docs!

Lee White (Lodestar Software)

NewsArchive
04-01-2017, 11:52 AM
Thanks. I guess SB should do that for me, if it checks for app version
anyway.

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 11:52 AM
Thanks again Lee.

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 11:54 AM
Hi Jeff,

> My guess is that a com object that I call is calling
> SetProcessDPIAware() or something like that.
>
> Maybe we can fix it in the app manifest. I don't see anything in SB
> about that.

SB supports it. Add the "#embed UAC manifest..." and the DPI-aware is
in the lower right corner.

However: I tested the manifest setting on my laptop (NOT from SB, just
my own) and it never made any difference no matter if I followed the
recipe to the letter. So, I don't know if the manifest setting actually
helps with the problem.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
04-01-2017, 11:54 AM
Arnor,

> SB supports it.

Copycat!

Lee White (Lodestar Software)

NewsArchive
04-01-2017, 11:59 AM
For my particular problem. Setting the DPI-Aware thing solved it.
Wonder when Friedrich did that and if anyone else went through my same
fun.

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 12:00 PM
Jeff,

> For my particular problem. Setting the DPI-Aware thing solved it.
> Wonder when Friedrich did that and if anyone else went through my same
> fun.

Then I probably shouldn't mention it's also here although limited and
nothing in the help!<g> Sorry, can't help myself!!!!

Lee White (Lodestar Software)

NewsArchive
04-01-2017, 12:02 PM
Hi Jeff,

> For my particular problem. Setting the DPI-Aware thing solved it.
> Wonder when Friedrich did that and if anyone else went through my same
> fun.

Awesome! It was added last summer:

SetupBuilder 2016 Version 10.0 Build 5203 (July 07, 2016)
----------------------------------------------------------------------------

NEW : IDE: Add 'DPI-aware' element option to the "#embed UAC
manifest..." compiler directive.

Best regards,

--
Arnor Baldvinsson
Icetips Alta LLC

NewsArchive
04-01-2017, 12:03 PM
>Awesome! It was added last summer:

That may have been Last Summer for all y'all, but for us folk South of the Equator, it
was Last Winter. <g>.

John Griffiths

NewsArchive
04-01-2017, 12:04 PM
But you live everywhere<g>

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-01-2017, 12:04 PM
LOL

And anywhere?

Andre Labuschagne