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

Username:   Password: 
 RegisterRegister   
 Smoothly resizing a Run Window?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Cervantes




PostPosted: Tue Mar 22, 2005 10:17 am   Post subject: Smoothly resizing a Run Window?

We can smoothly move a window from one position to another:
Turing:

var winID := Window.Open ("position:0;0")
for x : 0 .. 300
    Window.SetPosition (winID, x, 0)
end for

But, how do we smoothly resize a window? Clearly, this isn't what we want:
Turing:

var winID := Window.Open ("position:0;0,graphics:0;100")
for x : 0 .. 300
    Window.Set (winID, "graphics:" + intstr (x) + ";100")
end for

Anyone know how to make this... good?

Cheers
Sponsor
Sponsor
Sponsor
sponsor
mike200015




PostPosted: Wed Mar 23, 2005 5:30 pm   Post subject: (No subject)

i think if u use Window.Update (winID) then it might make it move smoother.. since this does the same thing almost as View.Set ("offscreenonly").
Flikerator




PostPosted: Thu Mar 24, 2005 3:20 pm   Post subject: (No subject)

mike200015 wrote:
i think if u use Window.Update (winID) then it might make it move smoother.. since this does the same thing almost as View.Set ("offscreenonly").


Clearly that won't work. To use Window.Update you have to first set it to offscreenonly by either using View.Set or when you make the window...

Thats not the problem anyways. View.Update or Window.Update will update whats "in" the window, not the window iteself.

Even using delay doesn't work. Use 50 delay and wait, its kinda strange (im using Xp).

Ill try to think of a solution, but for now you are on your own ^^
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  [ 3 Posts ]
Jump to:   


Style:  
Search: