auto resize window
Author |
Message |
85882
|
Posted: 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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
krishon
|
Posted: Sun Jun 15, 2003 10:39 am Post subject: (No subject) |
|
|
there should already be a post on that |
|
|
|
|
|
Homer_simpson
|
Posted: Sun Jun 15, 2003 11:33 am Post subject: (No 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
|
|
|
|
|
|
|
85882
|
Posted: Mon Jun 16, 2003 3:48 pm Post subject: (No subject) |
|
|
Thanks! |
|
|
|
|
|
|
|