GLBasic forum

Feature request => 2D => Topic started by: Jonás Perusquía on 2012-Apr-27

Title: window control request
Post by: Jonás Perusquía on 2012-Apr-27
i have a request wich i hope you would like:


GETWINDOWSIZE -> this gives you the current size of the window in two variables, so you can manage different sizes easy..

with this command you should be able to add controls such as:

CHANGE WINDOW SIZE:

800x600
640x480
personalized: ___x___

like?
Title: Re: window control request
Post by: backslider on 2012-Apr-27
Which windows size do you want?
The size of the game window?

If yes...
Code: (glbasic) [Select]
LOCAL sx, sy
GETSCREENSIZE sx, sy

//SETSCREENSIZE width, height, fullscreen

;)
Title: Re: window control request
Post by: Quentin on 2012-Apr-27
see also command GETDESKTOPSIZE
Title: Re: window control request
Post by: Jonás Perusquía on 2012-Apr-28
the SETSCREENSIZE doesn´t work for me, it does not appear to be a valid command... i should place it with //?
Title: Re: window control request
Post by: Schranz0r on 2012-Apr-28
// is for commentaries
Title: Re: window control request
Post by: Jonás Perusquía on 2012-Apr-28
i know, but backslider placed the code with // so i though this could be different...

btw, the IDE doesn´t recognize the command, it shows it as only text :(
Title: Re: window control request
Post by: Moebius on 2012-Apr-28
I believe you'll find the command he meant is SETSCREEN  ;)
Title: Re: window control request
Post by: Schranz0r on 2012-Apr-28
Ohhhhhh sry for sure:

Code: (glbasic) [Select]
SETSCREEN x, y, fullscreen
Title: Re: window control request
Post by: backslider on 2012-May-03
Oh, SETSCREEN... Sorry.  :good:
Title: Re: window control request
Post by: Jonás Perusquía on 2012-May-03
yeah thanks, SETSCREEN really works, we should have met before xD


thanks you all of you for your help!!!