Continuous scrolling field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Continuous scrolling field
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
I know this must be possible but how?
Getting back into LC after a brief hiatus.
Tom
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Continuous scrolling field
Hi Tom,
Just a start
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9645
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Continuous scrolling field
Just another play...
Craig
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9645
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Continuous scrolling field
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
How important is any of that gadgetry?
Craig
Re: Continuous scrolling field
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
Tom
-
- VIP Livecode Opensource Backer
- Posts: 9645
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Continuous scrolling field
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
So much fun, assuming this get traction...
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9645
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Continuous scrolling field
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
I do admit that the text itself gets pretty boring after an hour or two.
Craig