Computer Science Canada

auto resize window

Author:  85882 [ Sun Jun 15, 2003 10:33 am ]
Post subject:  auto resize window

Is there a code that let's the program automatically resize the window?

Author:  krishon [ Sun Jun 15, 2003 10:39 am ]
Post subject: 

there should already be a post on that

Author:  Homer_simpson [ Sun Jun 15, 2003 11:33 am ]
Post subject: 

View.Set("graphics:xsize;ysize")
or Window.Set(Window.GetActive,"graphics:xsize;ysize")

here's an example
code:
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

Author:  85882 [ Mon Jun 16, 2003 3:48 pm ]
Post subject: 

Thanks! Wink


: