Getting a Label Field to Scroll with Another Field

Sarah Reichelt sarah.reichelt at gmail.com
Mon Mar 15 17:03:16 EDT 2010


I've done this but I had to make sure that the titles field content  
was wider than the data field's. Just add tabs to the headers until  
they are one column longer. Then your scrolling script should work.

Cheers,
Sarah

Sent from my iPhone

On 16/03/2010, at 1:29 AM, Gregory Lypny <gregory.lypny at videotron.ca>  
wrote:

> Hello Everyone,
>
> I have a list field called Table A.  It has a horizontal scrollbar,  
> a vertical grid and tab stops set to 80.  The contents are tab  
> delimited, and the formatted width of many of the items in a line,  
> particularly the last item, is much greater than 80.  I also have a  
> label field called Titles A directly above Table A.  It has column  
> titles in it, and so it has the same vertical grid and tab stops as  
> Table A.
>
> I'd like those column titles in Titles A to be synchronized with the  
> horizontal scrolling of Table A.  As a start, I tried the following.
>
> on scrollBarDrag
>   set the hScroll of fld "Titles A" to the hScroll of fld "Table A"
> end scrollBarDrag
>
> It didn't work.  The titles scrolled only a little.  I figure that  
> is because the content of the lines of Table A is much wider than  
> that of Titles A.  I tried inserting some blank titles at the end  
> Titles A but that didn't help either.  The content of Table A will  
> be changing, so I'd like the synchronized scrolling to handle that.
>
> Any tips would be most appreciated.
>
> Regards,
>
> Gregory
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list