Odd behaviour using revChangeWindowSize

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Odd behaviour using revChangeWindowSize

Post by gyroscope » Sat Jan 03, 2009 2:50 pm

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)

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Sat Jan 03, 2009 6:06 pm

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

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Sat Jan 03, 2009 11:01 pm

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:

Post Reply