QB64 Phoenix Edition
Is it possible to determine the screen scaling factor within QB64? - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: Chatting and Socializing (https://staging.qb64phoenix.com/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=2)
+--- Thread: Is it possible to determine the screen scaling factor within QB64? (/showthread.php?tid=352)



Is it possible to determine the screen scaling factor within QB64? - hanness - 05-06-2022

I posted earlier about an issue involving font sizes on a screen. I've figured out how I can perform manual calculations, but I need to know the screen scaling factor to make my calculations.

Is there some way that I can ascertain the scaling factor from within QB64?


RE: Is it possible to determine the screen scaling factor within QB64? - bplus - 05-06-2022

Use _DeskTopWidth, _DeskTopHeight for maximum screen pixels, scale from those numbers.


RE: Is it possible to determine the screen scaling factor within QB64? - Pete - 05-06-2022

Did you check out my post, here?

https://staging.qb64phoenix.com/showthread.php?tid=337

_HEIGHT
_WIDTH
_FONTHEIGHT
_FONTWIDTH


RE: Is it possible to determine the screen scaling factor within QB64? - hanness - 05-09-2022

Just to follow up and close the loop on this question, using the _FONTHEIGHT and _FONTWIDTH worked perfectly for me. The calculations work perfectly using that.