Re: Cascading stack windows

Steve Pothier (starnet!apple!aries.saic.com!pothiers)
Fri, 24 Sep 93 16:08:41 MST

Metalistees,

I am presenting a sequence of cards that come from different stacks. All
the stacks rects are the same size. I want the cards to appear in the
same place on the screen even though they come from different stacks.
Using a third stack as a controlling stack I can access the correct
card in the correct stack, and can use hide/show combinations to view
the stack I want to.

For instance I have stack A with 5 cards, stack B with 4 cards, and stack
C with 6 cards. I want to show the cards in the sequence A2, C3, B4. I
can do this, but the card for the new stack cascades 11 pixels to the
right and 33 pixels down, even if I reset the stack loc after the stack is
open. I guess I can lock the screen and offset the old stack left 11 and
up 33, open the next stack at the desired loc, and unlock the screen, but
that seems like a lot of busywork. Is there some way to defeat the
cascading of stacks as they're opened?

I think the root of your problem is that you are fighting the window
manager. My guess is that just because the stack is opened doesn't
mean it has been MANAGED (put on the screen). I've gotten around this
by openeng each stack in turn, THEN going back and setting the
location of each (all through the use of the controlling stack).

Steve Pothier
pothiers@aries.saic.com

Member of the League for Programming Freedom
-- write to lpf@uunet.uu.net

"The time a man spends sailing is not deducted from his lifespan."