• AVR Freaks

Helpful ReplyMPLAB X on high dpi displays

Author
and101
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/03/04 12:30:41
  • Location: 0
  • Status: offline
2015/03/04 12:57:28 (permalink)
0

MPLAB X on high dpi displays

I recently upgraded my monitor to a 4K high dpi display and while most applications support high dpi displays under Windows 8.1 MPLAB has a few issues that I am having trouble solving.  When you first start up MPLAB all of the icons and text are tiny and the bits that do scale to the correct size cause the rest of the UI to fall apart.
 
Tiny icons isn't too much of an issue, I just have to be more precise with where I click and I have managed to fix the font size problem by adding "--fontsize 24" into the default settings in the mplab_ide.conf file.  All of the fonts are now a readable size but there seems to be a problem with any part of the UI that uses tree views as they do not scale the line heights correctly so you end up with text overlapping like in the image below.
 
Attachments are not available: Download requirements not met 
 
I have done a bit of research into the issue and it appears that the TreeTableView component in the Netbeans IDE is not set to scale the row heights appropriately which is causing it to cut off the bottom of each row.  Netbeans does have an option to enable high dpi support by adding -J-Dsun.java2d.dpiaware=true into the default options in the config file but I have tried adding that in and nothing happens so it looks like it is being overridden internally.
 
Does anyone know if it is possible to enable high dpi support in MPLAB?  I understand that 4K monitors are still relatively new and won't appear on most engineers benches for a long time so adding support is probably not a priority but it would be nice to get it working fully.
 
 
 
 
 

Attachment(s)

Attachments are not available: Download requirements not met
#1
annapolis
Administrator
  • Total Posts : 1808
  • Reward points : 0
  • Status: offline
Re: MPLAB X on high dpi displays 2015/03/05 08:30:03 (permalink)
+1 (1)
MPLABX leverages NetBeans support for high DPI.
Can you verify high DPI support with MPLABX 3.x Beta, which includes NB 8.x ?

MPLAB X IDE v3.00 Beta Available for Download
http://www.microchip.com/pagehandler/en-us/family/mplabx/
#2
and101
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/03/04 12:30:41
  • Location: 0
  • Status: offline
Re: MPLAB X on high dpi displays 2015/03/05 09:21:49 (permalink)
0
I just tried installing MPLAB X 3.00 beta and it appears to have the same problems as the previous version.  I have attached a screenshot of 3.00 so you can see how the whole interface looks.  Most of the fonts are scaling correctly but the row heights for the menus looks like it is being set at a value that is too small so they are overlapping.  The tab bar titles and the icons are also not scaling correctly.
 
My monitor is set to enlarge the UI elements by 200%.  In previous versions of windows the maximum you could enlarge the elements was 150% so I am not sure if netbeans is failing because it doesn't recognise 200% as a possible value.

Attachment(s)

Attachments are not available: Download requirements not met
#3
annapolis
Administrator
  • Total Posts : 1808
  • Reward points : 0
  • Status: offline
Re: MPLAB X on high dpi displays 2015/03/06 13:26:29 (permalink)
+1 (1)
Possible workaround:
netbeans --laf javax.swing.plaf.metal.MetalLookAndFeel --fontsize 14
http://wiki.netbeans.org/FaqFontSize
 
Adding for reference:
http://news.kynosarges.org/2013/08/09/javafx-dpi-scaling/
https://netbeans.org/projects/platform/lists/dev/archive/2014-09/message/31
https://forums.netbeans.org/topic59652.html
 
post edited by annapolis - 2015/03/06 15:08:52
#4
NorthGuy
Super Member
  • Total Posts : 5434
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: MPLAB X on high dpi displays 2015/03/06 13:44:59 (permalink)
0
Have you tried changing Windows' DPI setting?
#5
and101
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/03/04 12:30:41
  • Location: 0
  • Status: offline
Re: MPLAB X on high dpi displays 2015/03/07 02:52:01 (permalink)
+1 (1)
In Windows 8.1 you can't set the monitor dpi directly, you just have a slider that allows you to scale the UI by a percentage.  I have tried scaling the UI to 150% and 200% and MPLAB has the same problems on both sizes.
#6
NorthGuy
Super Member
  • Total Posts : 5434
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: online
Re: MPLAB X on high dpi displays 2015/04/25 07:46:14 (permalink)
+1 (1)
HKEY_CURRENT_USER\Control Panel\Desktop
  Win8DpiScaling = 1
  LogPixels = whatever you want (96 is regular)
#7
and101
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2015/03/04 12:30:41
  • Location: 0
  • Status: offline
Re: MPLAB X on high dpi displays 2015/04/25 10:02:16 (permalink)
0
I tried changing the registry keys but it didn't appear to work, it just made all of the icons on my main monitor tiny and the ones on my second monitor normal size.  I think a part of the problem could be that I am using two monitors with different DPI settings, 192dpi on my main monitor and 96dpi on the second so the old way of setting the global dpi for windows doesn't work.  Hopefully when Windows 10 is released this summer it will have better support for high dpi displays.
#8
SoftEgg
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2017/10/30 16:32:17
  • Location: 0
  • Status: offline
Re: MPLAB X on high dpi displays 2017/10/31 01:44:58 (permalink) ☄ Helpfulby nmac 2019/01/31 18:44:41
0
This helps a bit:

Open C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microchip\MPLAB X IDE (or wherever you have installed it.)
Right click on "MPLAB X IDE vn.nn"
Click "Properties"
Turn on "Override high DPI scaling behavior.
Under "Scaling performed by:" select "Application"
Hit "OK".
 
It should now scale everything to a point that is somewhat usable, although icons are still pretty small.

Seriously tho, Microchip should really fix this. They should also fix the problem requiring you to make a new Admin account in order to install the thing at all. Do they even test this stuff?
#9
Gort2015
Klaatu Barada Nikto
  • Total Posts : 3121
  • Reward points : 0
  • Joined: 2015/04/30 10:49:57
  • Location: 0
  • Status: offline
Re: MPLAB X on high dpi displays 2017/10/31 09:14:59 (permalink)
0
No.

MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
https://www.youtube.com/watch?v=Iu1qa8N2ID0
+ ST:Continues, "What Ships are Made for", Q's back.
#10
Jump to:
© 2019 APG vNext Commercial Version 4.5