Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 auto resize window
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
85882




PostPosted: 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
Sponsor
sponsor
krishon




PostPosted: Sun Jun 15, 2003 10:39 am   Post subject: (No subject)

there should already be a post on that
Homer_simpson




PostPosted: 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




PostPosted: Mon Jun 16, 2003 3:48 pm   Post subject: (No subject)

Thanks! Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: