Author Topic: window control request  (Read 5045 times)

Offline Jonás Perusquía

  • Mr. Polyvector
  • ***
  • Posts: 170
    • View Profile
    • Ditrabox
window control request
« 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?
<HTML><BASIC><EC>
Be free and do good things

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: window control request
« Reply #1 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
 

;)

Offline Quentin

  • Prof. Inline
  • *****
  • Posts: 915
    • View Profile
Re: window control request
« Reply #2 on: 2012-Apr-27 »
see also command GETDESKTOPSIZE

Offline Jonás Perusquía

  • Mr. Polyvector
  • ***
  • Posts: 170
    • View Profile
    • Ditrabox
Re: window control request
« Reply #3 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 //?
<HTML><BASIC><EC>
Be free and do good things

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5018
  • O Rly?
    • View Profile
Re: window control request
« Reply #4 on: 2012-Apr-28 »
// is for commentaries
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Jonás Perusquía

  • Mr. Polyvector
  • ***
  • Posts: 170
    • View Profile
    • Ditrabox
Re: window control request
« Reply #5 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 :(
<HTML><BASIC><EC>
Be free and do good things

Offline Moebius

  • Dr. Type
  • ****
  • Posts: 315
    • View Profile
Re: window control request
« Reply #6 on: 2012-Apr-28 »
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

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5018
  • O Rly?
    • View Profile
Re: window control request
« Reply #7 on: 2012-Apr-28 »
Ohhhhhh sry for sure:

Code: GLBasic [Select]
SETSCREEN x, y, fullscreen

I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: window control request
« Reply #8 on: 2012-May-03 »
Oh, SETSCREEN... Sorry.  :good:

Offline Jonás Perusquía

  • Mr. Polyvector
  • ***
  • Posts: 170
    • View Profile
    • Ditrabox
Re: window control request
« Reply #9 on: 2012-May-03 »
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