Re: Window staggering

2006-04-12 Thread Richard Gaskin
James Spencer 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

Re: Window staggering

2006-04-12 Thread James Spencer
Richard and Jim thank you both. It was because I was well aware that there were these exceptions not listed and because it is not a trivial task that I asked my question. A sick part of me is glad to see I have not missed some obviously, and trivially easy solution. Now off to code a

Re: Window staggering

2006-04-12 Thread Richard Gaskin
James Spencer wrote: Richard and Jim thank you both. It was because I was well aware that there were these exceptions not listed and because it is not a trivial task that I asked my question. If there's a simple way to do proper window staggering it eluded my best effort. :) One thing

Window staggering

2006-04-11 Thread James Spencer
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.

Re: Window staggering

2006-04-11 Thread Jim Ault
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