Page 1 of 1

Odd behaviour using revChangeWindowSize

Posted: Sat Jan 03, 2009 2:50 pm
by gyroscope
Hi, don't know if I'm missing the obvious here or not:

I've uploaded a small test stack to RevOnline/gyroscope, 400 x 400, using revChangeWindowSize. 4 buttons, each with revChangeWindowSize script.

If you click the width to 500, it changes the height to 500, similarly with width back to 400 changes the depth back to 400.

Clicking the height to 600 works but changes the width also, similarly with 300 height (if pressed twice), etc.

Anyone any comments/thoughts on this please :?:

(although I have Rev 3.0, still using 2.9 on G5)

Posted: Sat Jan 03, 2009 6:06 pm
by bn
Hi Gyroscope,

try changing button 'height to 300':

Code: Select all

revChangeWindowSize 300, the height of stack "aa","slide",,500
and button 'height to 600':

Code: Select all

revChangeWindowSize 600, the height of stack "aa","slide" ,,500
it seems revChangeWindow expects the width first and the height as second argument like in a point. The way you coded it it took it the other way around. At least that is what I gather from the function of the buttons their name seems to be inverted height->width and vice versa.
Anyway above code should work
good thing you got a refill on your ink :)
bernd

Posted: Sat Jan 03, 2009 11:01 pm
by gyroscope
Excellent, thank you muchly, Bernd! I'm using revChangeWindowSize in my first project and in at least two of my projected apps, so I was getting a bit worried there...
good thing you got a refill on your ink :)
It certainly is and I'm looking forward to many more hours of trouble free computing. :wink: