Page 1 of 1
Continuous scrolling field
Posted: Tue Feb 15, 2022 7:02 pm
by trags3
I need to be able to have a field that I can have the user paste a news story or two into and then have it continuously scroll so it can be read and start over when the bottom has been reached.
I know this must be possible but how?
Getting back into LC after a brief hiatus.
Tom
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 7:38 pm
by jmburnod
Hi Tom,
Just a start
Code: Select all
on textchanged
set the vscroll of fld 1 to 0
wait 1 seconds
put the formattedheight of fld 1 into tFH
repeat with i = 1 to tFH
if the optionkey is down then exit repeat
set the vscroll of fld 1 to i
end repeat
end textchanged
Best regards
Jean-Marc
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 8:36 pm
by dunbarx
Just another play...
Craig
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 8:39 pm
by dunbarx
Probably better to have the user somehow use the cursor inside the scrolling field itself to control the position and rate of the text flow.
How important is any of that gadgetry?
Craig
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 10:17 pm
by trags3
There will be maybe 2 or 3 news stories that need to be continuously scrolled without user input. Maybe 2 or 3 times a day someone will either change the stories or add more.
Tom
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 10:24 pm
by dunbarx
To make this run nicely, it would be better not to jump to the top at the bottom of the current text, which is disconcerting, but rather to present a continuous flow. This means taking text that has already passed upward and out of view, and appending it to the bottom. This can be done in stage hopefully invisibly.
So much fun, assuming this get traction...
Craig
Re: Continuous scrolling field
Posted: Tue Feb 15, 2022 11:42 pm
by dunbarx
So here is a continuous scrolling field that needs no scrollbar, has a speed control, and runs forever.
I do admit that the text itself gets pretty boring after an hour or two.
Craig