Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1468

VB6/RC6 Question: DPI awareness design/runtime time switch

$
0
0
Olaf, another question,

The setting Cairo.SetDPIAwareness that sets DPI awareness for the whole program incl. native VB6 forms. This is very useful and using your PSD parser, creates crisp and clear graphics for high DPI screens.

I'm assuming it, under the cover, does something like this: Private Declare Function SetProcessDPIAware Lib "user32.dll" () As Long

Unfortunately, it creates blurry stopwatch images on low DPI screens.

I can resolve this easily by adding an 'if' switch on the Cairo.SetDPIAwareness line and adding a new DPI setting setting in the prefs. The trouble is I have to close and restart the program, is there any way of making this runtime switchable without the need for a restart?

I am guessing it cannot, it's no big deal really, I can add some external code to hard kill and restart.

So, just a question.

Viewing all articles
Browse latest Browse all 1468

Trending Articles