QB64 Phoenix Edition
auto-detecting screen resolution for optimal window size on non-Windows systems - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: auto-detecting screen resolution for optimal window size on non-Windows systems (/showthread.php?tid=4038)



auto-detecting screen resolution for optimal window size on non-Windows systems - madscijr - 10-26-2025

I know how to detect the right window size (minus the taskbar) in Windows, thanks to this code by @bplus, 
however if the program detects that the user is not in Windows, what code can we use to find the optimal window size?