Resetting the Scroll of a Text Field
Date: Tue, 15 Nov 1994 14:04:05 -0800
From: Jon Gorrono <jpgorrono@UCDAVIS.EDU>
Subject: Re: Scrollable Text Castmember Question
>I need some help. I've create a text castmember and made it scrollable
>under castmember options. My problem is I want to reset the position
>in the text to the first line when you leave the field. As it is now
>you scroll to bottom of the text and you will remain at that point
>unless the user scrolls up.
I have finally settled on using the following
on something
put the number of chars of line one of field "whatever" into num
put " " after line 1 of field "whatever"
delete char num+1 of field "whatever"
end something
Date: Wed, 16 Nov 1994 13:29:22 MST
From: Chris Malley <cvm@BHI.COM>
Subject: Re: Scrollable Text Castmember Question
Haven't verified this since I'm not near my Mac, but don't see why this
shouldn't work. I believe that setting the text of a scrolling text castmember
will move line 1 to the top of the list. So just read the current text
and stuff it right back in, like so:
on resetScrollingText whichCast
set myText = the text of cast whichCast
set the text of cast whichCast to myText
end
Date: Sun, 20 Nov 1994 09:00:58 PST
From: Grover Sanschagrin <GroverS@EWORLD.COM>
Subject: Re: Scroll text field return
on exitFrame
put EMPTY before line 1 of field "myField"
end exitFrame