Line Numbers

Wilhelm Sanke sanke at
Sat Jan 1 10:01:34 EST 2005

On Sat Jan 1 10:23:47, D.Rothe drothe at wrote:

> G'Day and Happy New Year to all!!!!!!!!
> I am hoping someone could guide me with the following prob.
> I have two fields (field 1 & field 2), field 2 is for loading and 
> displaying a txt file and field 1
> is for displaying each corresponding line number of field 2.
> The line numbers must be in a seperate field otherwise they will show 
> when printing field 2.
> Obviously field 2 is a scrolling field so the problem is getting field 
> 1 to scroll in unison with field 2 so the line numbers match the 
> correct line.
> Any ideas on the code or maybe a different solution!!!!
> Thanx to all.....
> Cheers Dwayne...

Put this into the script of the scrolling field 2:

"on scrollbardrag
  set the scroll of fld 1 to the scroll of me
 end scrollbardrag"

Regards and Happy New Year!

Wilhelm Sanke

More information about the Use-livecode mailing list