Recently, Richard Gaskin wrote:
As other folks have pointed out, it is indeed possible to script a solution, but the consistent problem is that the text lines can often be seen moving slightly out of sync with the stripes. An alternate workaround is to use a scrolling group which includes a field and a stripe image, which should prevent any latency while scrolling, but it would be much preferable to have an engine-level solution for fields.
Agreed, but the nice thing about X's solution is that it's the simplest I've seen yet -- just one extra object!
It uses a second field below the top one, with the hilitedLines set to all even numbered lines. You can change the hiliteColor to whatever you want, and by being just one extra object it greatly reduces the "scroll synch" issue you'll find more noticeable with groups.
Maybe I'm missing something: if multiple items are scrolled within a group by the group's scrollbar, how is there any synch problem?
When they're all grouped together, the problem isn't synching.
Instead, the problem becomes one of smooth scrolling. Because fields are more specialized than groups, they're buffering is apparently handled in a much more optimized way. For short lists one may never see the difference, but with very long lists you'll find the responsiveness of groups lags way behind fields.
(I'm going to out-quote you... :-)
OK, when the fields are grouped together you can get performance issues, and when they're not grouped together you synch issues, so it would seem an engine-level solution is still really what is needed here.
Ideally, everything would be in the engine.
But in the meantime, while we lobby RunRev to first address things that can't be done in script at all (like normal line object behaviors with the pointer tool, proper file filtering with "answer file" on OS X, the ability to interactively create objects within groups, etc.), the nifty thing about X's solution is that it's so lightweight that I'd be surprised if the lag were noticeable on any system manufactured in the last five years.
I've look at a number of ways to do this, and I must say I feel Mr. X's clever method of using the hilitedLines of an underlying field is by far the simplest to set up and offers the smoothest user experience thus far.
-- Richard Gaskin Fourth World Media Corporation __________________________________________________ Rev tools and more: http://www.fourthworld.com/rev
_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
