window control request

Previous topic - Next topic

Jonás Perusquía

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?
<HTML><BASIC><EC>
Be free and do good things

backslider

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


;)

Quentin

see also command GETDESKTOPSIZE

Jonás Perusquía

the SETSCREENSIZE doesn´t work for me, it does not appear to be a valid command... i should place it with //?
<HTML><BASIC><EC>
Be free and do good things

Schranz0r

// is for commentaries
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Jonás Perusquía

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 :(
<HTML><BASIC><EC>
Be free and do good things

Moebius

I believe you'll find the command he meant is SETSCREEN  ;)
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Schranz0r

Ohhhhhh sry for sure:

Code (glbasic) Select
SETSCREEN x, y, fullscreen

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

backslider

Oh, SETSCREEN... Sorry.  :good:

Jonás Perusquía

yeah thanks, SETSCREEN really works, we should have met before xD


thanks you all of you for your help!!!
<HTML><BASIC><EC>
Be free and do good things