
-----------------------------------
85882
Sun Jun 15, 2003 10:33 am

auto resize window
-----------------------------------
Is there a code that let's the program automatically resize the window?

-----------------------------------
krishon
Sun Jun 15, 2003 10:39 am


-----------------------------------
there should already be a post on that

-----------------------------------
Homer_simpson
Sun Jun 15, 2003 11:33 am


-----------------------------------
View.Set("graphics:xsize;ysize")
or Window.Set(Window.GetActive,"graphics:xsize;ysize")

here's an example
View.Set ("graphics:max;max")
cls
var mx := View.maxx
var my : real := View.maxy
var f := mx / my

for x : 1 .. mx by 5
locate(1,1)
put x," ",mx," ",my
my:=x*f
Window.Set (Window.GetActive,"graphics:"+intstr(x)+";"+intstr(round(my)))
end for


-----------------------------------
85882
Mon Jun 16, 2003 3:48 pm


-----------------------------------
Thanks!  :wink:
