Page 2 of 3

Re: High DPI Monitors

PostPosted: Fri Dec 23, 2016 6:41 pm
by Mark Voorboom
Hi,
With some help from Johan, we have it now working on the latest Windows 10, Java 8 update 111 and the usage of a external manifest file. This manifest file tells windows that the jp2launcher.exe should start with the setting:<dpiAware>false</dpiAware>. If this is configured then the smart client starts up in blown up mode instead of very small with unreadable text.

How to configure a external manifest for jp2launcher.exe is described here: https://appuals.com/best-fix-disable-di ... indows-10/

Attached to this post you find the jp2launcher.exe.manifest file that you need to add in the C:\Program Files\Java\jre1.8.0_111\bin folder.

Johan mentioned in the corresponding jira ticket https://support.servoy.com/browse/SVY-10705 that the usage of a external manifest is deprecated in a the latest slow ring build of Windows 10, in that case only changing the jp2launcher.exe with a tool like resource tuner seems the solution.

Re: High DPI Monitors

PostPosted: Fri Dec 23, 2016 8:33 pm
by kwpsd
Thanks for posting, Mark! This is very good to know. I had to research 'slow ring build', because I did know its meaning. For others, the link below gives some insight to Microsoft's ring releases (beta testing, essentially):

https://en.wikipedia.org/wiki/Windows_Insider

Would it be possible to post the JIRA link you referenced?

Re: High DPI Monitors

PostPosted: Tue Dec 27, 2016 2:13 pm
by jcompagner
i added also something in the wiki: https://wiki.servoy.com/display/DOCS/Hi ... en+support

Re: High DPI Monitors

PostPosted: Tue Dec 27, 2016 7:45 pm
by kwpsd
Very good, Johan...thank you!

Re: High DPI Monitors

PostPosted: Mon Mar 20, 2017 10:50 am
by jcompagner
it seems that the next release of windows 10 makes this easier:

highdpionwindows10.PNG
highdpionwindows10.PNG (29.72 KiB) Viewed 14531 times


it seems to me (i didn't test this fully) but if you just say, override the dpi settings and let the system do it instead of what the application says, then the developer at least starts up nicely

Re: High DPI Monitors

PostPosted: Mon Mar 20, 2017 7:33 pm
by kwpsd
Thanks for posting, Johan.

I do not get the same results. I removed the servoy.exe.manifest file and change the registry setting at 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide' PreferExternalManifest REG_WORD to zero. Then, I checked the box in servoy.exe properties, but there is no 'System' to select as in your screen shot (see graphic below):

servoy_exe_properties.png
servoy_exe_properties.png (48 KiB) Viewed 14513 times


With the checkbox ticked, the text in Developer seems to be 'normal' sized, but the icons and other graphics are small.

I was wondering if you are running the same version of Windows (see graphic below). My Windows OS was just updated yesterday.

windows_properties.png
windows_properties.png (7.61 KiB) Viewed 14513 times

Re: High DPI Monitors

PostPosted: Tue Mar 21, 2017 10:58 am
by jcompagner
didn't i say "the next release of Windows 10" ?

see also my image it is really different then yours, you have to have a combobox instead of just 1 check box.
i am currently on: Version 10.0.15058 thats the insider slow ring build

Re: High DPI Monitors

PostPosted: Tue May 02, 2017 11:01 am
by jcompagner
So with the new windows 10 creators update we have now 3 settings in the compatibility properties (Override scaling behavior)

For the smart client you have to adjust the jp2launcher.exe file in the java/jre installation\bin folder) and you have to use the second option "System"

For the developer (so servoy.exe) you can use the "System (enhanced)" option as far as i can see (the only weird thing i see then is the splash screen, but the rest is then way sharper (then using just "System") and correct (when using "Application"/default)

Form wiped out

PostPosted: Fri May 05, 2017 4:22 pm
by lwjwillemsen
We are getting more and more reports from end users of blank forms in smart client session (Servoy 7 Windows 10) after some time.
Starting the smart client again solves the problem (for a while).
This problem occurs mostly on "new" systems with higher resolutions.

Any ideas / experiences / tips?

Re: High DPI Monitors

PostPosted: Fri May 05, 2017 4:42 pm
by jcompagner
This has not much to do with this case but i guess end users get this in there console log?

java.lang.NullPointerException
at com.sun.java.swing.plaf.windows.WindowsTableHeaderUI$XPDefaultRenderer.paint(Unknown Source)
at javax.swing.CellRendererPane.paintComponent(Unknown Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.paintCell(Unknown Source)
at javax.swing.plaf.basic.BasicTableHeaderUI.paint(Unknown Source)

That is (tried) to be fixed for 7.4.10 and 8.1.3

But we are still not 100% sure but it is very hard to really constantly reproduce.

Re: High DPI Monitors

PostPosted: Fri May 05, 2017 5:19 pm
by lwjwillemsen
Thanks Johan for your response!
Is there a public available issue where I can look for info?

Regards,

Re: High DPI Monitors

PostPosted: Mon May 08, 2017 11:29 am
by jcompagner

Re: High DPI Monitors

PostPosted: Mon May 08, 2017 8:31 pm
by lwjwillemsen
Thanks for that info, Johan.
Will the fix for SVY-10621 also be available in 7.4.10 (Sprint 138)?

Re: High DPI Monitors

PostPosted: Tue May 09, 2017 9:19 am
by jcompagner
yes its also in 7.4.10

Re: High DPI Monitors

PostPosted: Wed May 10, 2017 8:45 am
by lwjwillemsen
Ok, thanks!
BTW: I see no SVY-10621 on the 7.4.10 release fix list
http://forum.servoy.com/viewtopic.php?p=116624#p116624