Scroll to a line in a field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 73
- Joined: Sat Apr 08, 2006 6:51 pm
Scroll to a line in a field
How does one scroll down to a specific line in a field?
In nova fert animus mutatas dicere formas corpora.
Re: Scroll to a line in a field
Preston...
If you want to scroll to line 20... in a scrolling list field...
be well
Dixie
If you want to scroll to line 20... in a scrolling list field...
Code: Select all
on mouseUp
set the vScroll of fld 1 to (20 * the effective textHeight of fld 1)
set the hilitedLine of fld 1 to 20
end mouseUp
Dixie
Re: Scroll to a line in a field
Dixie's script is just fine. He even hilites the target line.
Just note that the field does not have to be a scrolling field. Any field can be "scrolled", in the sense that lines below the visible extent of the field can be brought into view in the same manner.
Craig Newman
Just note that the field does not have to be a scrolling field. Any field can be "scrolled", in the sense that lines below the visible extent of the field can be brought into view in the same manner.
Craig Newman