Auto-Detect Resolution

New to FreeBASIC? Post your questions here.
Posts: 37
Joined: Jan 26, 2017 7:54

Auto-Detect Resolution

Postby TurtleProgrammer » Dec 20, 2017 1:32

Is there a way to Auto-Detect Screen Resolution?
Posts: 358
Joined: Sep 30, 2017 3:22

Re: Auto-Detect Resolution

Postby sancho3 » Dec 20, 2017 2:55

Posts: 451
Joined: Apr 30, 2015 19:28
Location: Texas,U.S., Earth,Solar System

Re: Auto-Detect Resolution

Postby Boromir » Dec 20, 2017 17:27

TurtleProgrammer wrote:Is there a way to Auto-Detect Screen Resolution?

Code: Select all

dim as integer w,h,depth
Screeninfo w,h,depth

screenres w,h,depth

print "Your screen resolution is "+str(w)+" x "+str(h)
print "Your color depth is "+str(depth)


Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 6 guests