My first thought is to set a start location (10,10) and an ending topLeft (100,100) and 2 increments (eg. 30,50), then use a loop for the number of windows to find the topLeft, (then set the rightBottom according to the screenrect available, if desired).
Of course, step 1 would be determining the window order (alphabetical, current stacking order, etc) on test put 30 into xIncrm put 40 into yIncrm put 10 into xStart put 10 into yStart put 120 into xMax put 160 into widthh put 90 into heightt put xStart into currX put yStart into currY repeat with s = 1 to the number of stacks set the left of stack s to currX set the top of stack s to currY --set the width and height if needed add xIncrm ot currX add yIncrm ot currY if currX > xMax then put xStart into currX put yStart into currY end if end repeat end test ---not tested, just typed off the top of my head Jim Ault Las Vegas On 4/11/06 8:12 PM, "James Spencer" <[EMAIL PROTECTED]> wrote: > This should be really easy and I don't want to rediscover gravity so > I'll ask first: does anyone here have a simple algorithm for > staggering new windows in a multiwindow app? I've gotten spoiled by > Cocoa, etc. which takes care of this for me but cloning a template > window in Rev does not. Obviously, I could just move my new window a > bit but I'm not sure how far and in any case, if the number of > windows is large enough, we need to restart at the top. I figure > someone has written this already?? > > Spence > > James P. Spencer > Rochester, MN > > [EMAIL PROTECTED] > > "Badges?? We don't need no stinkin badges!" > > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution