GLBasic forum

Main forum => GLBasic - en => Topic started by: Neo-Bagamut on 2010-Jan-19

Title: The function returns the supported modes of the monitor
Post by: Neo-Bagamut on 2010-Jan-19
Hello everyone!

Need help with a function that returns the supported modes of the monitor.

First I want to ask whether there are comands in GLBasic allow to realize it?

Revised set of compilers (both paid [Blitz3D, PureBasic, DarkBasic] and free [thinBasic]) and was surprised that everywhere, except GLBasic, these commands are present.

There will be whether such comands in future versions GLBasic? If yes, when?
Title: Re: The function returns the supported modes of the monitor
Post by: Moru on 2010-Jan-19
Hello!

Look at this one:
http://www.glbasic.com/forum/index.php?topic=961.msg4965#msg4965

I haven't tried it but I heard others had good luck with it.
Title: Re: The function returns the supported modes of the monitor
Post by: Neo-Bagamut on 2010-Jan-19
Quote from: Moru on 2010-Jan-19
Hello!

Look at this one:
http://www.glbasic.com/forum/index.php?topic=961.msg4965#msg4965

I haven't tried it but I heard others had good luck with it.

Thanks for this, but in my project it isn't useful.
Title: Re: The function returns the supported modes of the monitor
Post by: Stu_C on 2010-Jan-19

What else do you require ?
Title: Re: The function returns the supported modes of the monitor
Post by: MrTAToad on 2010-Jan-19
For Windows (or Windows CE), you would use the aforementioned code.  Unfortunately for all other platforms, its nearly impossible - for Linux, you would need to call XWindow stuff, but unfortunately you cant get the base screen ID.

For the Mac, I haven't seen any code that will do it...

Unfortunately SDL wont get a list of screen resolutions either...