Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to determine the screen scaling factor within QB64?
#1
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?
Reply
#2
Use _DeskTopWidth, _DeskTopHeight for maximum screen pixels, scale from those numbers.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#3
Did you check out my post, here?

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

_HEIGHT
_WIDTH
_FONTHEIGHT
_FONTWIDTH
Shoot first and shoot people who ask questions, later.
Reply
#4
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  _File$ is not behaving as expected, cannot determine why hanness 6 1,664 10-14-2024, 01:56 AM
Last Post: a740g
Sad Is there a way to determine screen resolution ? doppler 2 722 08-03-2023, 02:30 PM
Last Post: doppler
  Looking for a reliable way to determine if a drive letter is in use hanness 24 4,779 05-13-2023, 02:02 PM
Last Post: hanness

Forum Jump:


Users browsing this thread: 1 Guest(s)