iTunes-type alternate colored lines in scrolling list field

valetia at mac.com valetia at mac.com
Thu Mar 6 01:10:01 EST 2003


Hi Eric,

The stack looks great! However, the textHeight and patterns still don't seem
to line up perfectly.

You'll see it if you scroll to the bottom of the list (line 200)...the text
isn't exactly in the middle of the colored lines anymore...is this issue
solvable?

Thanks!

Valetia



> From: thinkertoys <thinkertoys at cyburb.com>
> Reply-To: use-revolution at lists.runrev.com
> Date: Wed, 5 Mar 03 23:15:50 -0500
> To: <use-revolution at lists.runrev.com>
> Subject: Re: iTunes-type alternate colored lines in scrolling list field
> 
> Here's a solution to create a field w/ alternating colored lines that
> scroll.
> 
> To get a demo stack just type the following into the message box:
> go stack URL "http://www.cyburb.com/rev/alternating.rev"
> 
> The trick is to use a transparent scrolling fld on top of another field
> where it's htmlText is used to display two graphics that create the
> alternating lines.  Then just change the scroll of both at the same time
> via scrollBarDrag.  Make sure the graphics are sized to exactly match the
> textHeight of the top fld & set the margins for the bottom fld to 0.
> 
> Eric
> Thinker Toys
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list