2017-06-27 07:27 AM
Hello ST team,
I think the STM32CubeMX code generator has a big problem with screen resolution. I'm using a laptop with 4K display, so my CubeMX appears like following screenshots, which are annoying in many cases: Almost half of most table rows appear vertically, the texts sometimes are too small or too large and so on:
Can this problem fix?
Bests,
Misagh
#cube-mx #stm32cubemxSolved! Go to Solution.
2017-10-24 01:14 AM
The uiScale Java option unfortunately works only with Java9.
Another possible option if you are on Windows 10 is to change the compatibility mode.
Right click on STM32CubeMX.exe and go the Properties -> Compatibility screen
Change the scaling behavior from Application to System.
We'll see if it is possible to force this option by default at installation time
Regards
Daniel
2017-10-24 06:10 AM
Unfortunately I don't have this option in my windows 10.
In compatibility tab I have 'disable display scaling on high dpi' option which doesn't effect on application UI.
Regards,
Misagh
2017-10-24 09:09 AM
Hello Daniel
Thanks a lot. The compatibility setting sorts out the problem and STM32CubeMX is now displaying properly!
Best regards,
Daniel Debrunner
2017-10-25 10:21 AM
I found another possible workaround to the issue (Warning it is a hack :) )
The actual problems comes from the manifest file embedded in the java.exe where it declares to be dpiAware.
So the trick is to change the manifest to set dpiAware false.
FYI I've forced <dpiAware>false</dpiAware> in STM32CubeMX.exe manifest but it doesn't work because STM32CubeMX.exe calls java.exe
Regards
Daniel