[comp.sys.mac.hypercard] dual scrolling fields

mmoss@csws8.ic.sunysb.edu (Matthew D Moss) (02/25/91)

I want to set up two scrolling fields that will scroll together.
That is, I can cover up the scroll bars of one with the other,
but I want both to scroll relative to the remaining set of bars.

I tried a stack script like:

on idle
	/* here I set the top lines equal - I forget code */
end idle


The only problem with this is that this only works when nothing
is happening - not the case when the mouse is down on the arrow
or thumb. The second field is updated AFTER the scroll; they do
no scroll together (can we say redundant?)

Does anyone know how to fix this? XCMD or XFCN? Or is it not
possible?


Matthew	Moss		mmoss@libserv1.ic.sunysb.edu

"No shield can save us!" - Emerson, Lake, and Palmer

mmoss@eeserv1.ic.sunysb.edu (Matthew D Moss) (02/25/91)

I need to make a question I recently posted more specific.

Before I asked about how to create dual scrolling fields. (Sorry, I
can't include the previous article). I couldn't set it up so that
two fields would scroll based upon one's scroll bar (and I tried
an on idle script. It doesn't accomplishg what I want).

I need this for the first Hypercard, not 2.0, since I have not 
upgraded yet.

Thanks.

Matthew Moss		mmoss@libserv1.ic.sunysb.edu

"We've all gotta jump, so I'm learning to fly!" - EL&P

ireland@ac.dal.ca (02/26/91)

In article <1991Feb25.055526.29906@sbcs.sunysb.edu>, mmoss@eeserv1.ic.sunysb.edu (Matthew D Moss) writes:
> I need to make a question I recently posted more specific.
> 
> Before I asked about how to create dual scrolling fields. (Sorry, I
> can't include the previous article). I couldn't set it up so that
> two fields would scroll based upon one's scroll bar (and I tried
> an on idle script. It doesn't accomplishg what I want).
> 
> I need this for the first Hypercard, not 2.0, since I have not 
> upgraded yet.
> 
> Thanks.
> 
> Matthew Moss		mmoss@libserv1.ic.sunysb.edu
> 
> "We've all gotta jump, so I'm learning to fly!" - EL&P
If you're going to be updating to HC 2.0 soon then it might be more trouble
than its worth to implement dual scrolling fields in HC 1.2 (theres a
demonstration of how to do them in HC 2.0 in the Power Tools stack if I
remember correctly). There is an XCMD that facilitates multiple scrolling
fields in HC 1.0 but I can't remember the name of it. There are multiple
ways of doing it with scripts alone.  Chapter 3 of "Tricks of the HyperTalk
Masters" by The Waite Group shows how to do it, as does Danny Goodman in
"The HyperCard Handbook 1.2 Upgrade Kit" (I suspect its also in the later
editions of his HyperCard books as well).

Hope this helps.   Keith Conover  ireland@ac.dal.ca