rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.92k stars 302 forks source link

Supply a configuration toggle to enable/disable DPIawareness for high DPI monitors. #6166

Open yereverluvinunclebert opened 1 year ago

yereverluvinunclebert commented 1 year ago

I run VB6 on Win7 + small screen and VB6 on Win10/11 with high DPI 4k screen with 125% scaling. Both have Rubberduck.

On the laptop the VB6 IDE with Rubberduck works how I want it to - perfectly.

On the Win10 system I generally run the VB6 IDE in non-DPI aware mode without Rubberduck enabled. I have the VB6 IDE auto-scaled and it looks fine, slighty blurry fonts but a big IDE window, exactly as on my Win7 system.

The problem is: as soon as I run Rubberduck on the Win10 system, the whole IDE becomes DPI aware and the whole IDE is then shrunk making it really hard to see and use as the IDE is not a program designed for high DPI usage.

My own programs that I create are DPI aware but I always provide them with a switch to enable or disable DPI awareness. This allows me to develop without the VB6 IDE shrinking to something unusable on high DPI screens.

Rubberduck should definitely have the same functioning switch as it makes it very hard to handle going through a Rubberduck code inspection with the font and IDE so very small.

I see the setting "Correction for high resolution display scalings" and I have checked/unchecked this. It has no effect on anything as far as I can see. I have tried the latest version of RD as well as older versions.

mansellan commented 1 year ago

Apologies, that's on me. I enabled Rubberduck support in VB6, and I seem to recall several nuances around the DPI support there, due to the original IDE predating the idea.

I thought I found the best compromise, but that was a few years back. I may well have made a bad assumption.

I'm not at home right now, will take a look in the next few days. I will probably have questions if that's OK?

yereverluvinunclebert commented 1 year ago

Happy to assist. screenshots, testing &c When I was poor and could only afford a cheap laptop it was fine. It has only become a problem now I can afford the luxury of a 4K monitor. I suppose it is really a first world problem... However, more and more of us have high DPI monitors these days and it will become the norm soon so worth fixing or enabling that DPI toggle.

retailcoder commented 1 year ago

Makes me wonder if that's still going to be a problem at all in v3.0 when the UI is completely out-of-process.