Screen Mode

Blitz3D Forums/Blitz3D Beginners Area/Screen Mode

pc_tek(Posted 2009) [#1]
Is there a way to get blitz to use the current windows screen settings...ie, rez and depth?

I am writing an app that requires full screen, but maintaining screen attributes.


Zeotrope(Posted 2009) [#2]
Good question! I too would like to know....sounds simple like reading in a bunch of variables? Bet it isnt!


Kryzon(Posted 2009) [#3]
I'm not sure if this is what you mean, but you could use API_GetSystemMetrics (to get desktop resolution) and API_GetDeviceCaps (to retrieve the current display Bit- Depth).

Search on Google what parameters to use with those functions in order to get the values you want.

Everything you need to control the style and size of the Blitz3D window's is achievable through those DECLS (User32, if I'm not mistaken). You just need to get the blitz window HWND and use that with the functions.

Kudos to Boiled Sweets for making those useful DECLS.

In case you don't want to do it manually, you could use WinBlitz3D.

Make sure to download Schnok. It's a visual editor for WinBlitz3D.
That way you can visually create the kind of window you want and automatically generate the code to create it.

Good luck.


pc_tek(Posted 2009) [#4]
Thanks, Kryzon for your response. I will give WINBLITZ a good looksee!


_PJ_(Posted 2009) [#5]
http://www.blitzbasic.com/codearcs/codearcs.php?code=2425