Hilite pattern in list field doesn't scroll correctly

J. Landman Gay jacque at hyperactivesw.com
Mon Aug 6 22:33:10 EDT 2012


I have a carefully sized gradient image that I use as a custom hilite 
pattern in a list field. It is exactly the height of the textheight. 
When the field is not scrolled it lines up perfectly with any selected 
line of the field.

But if the scrollbar is dragged and stopped in between even lineheight 
increments, the pattern tiles in a very ugly way. It looks like the 
engine is just tiling the pattern all the way down the field and 
whatever line is currently selected just makes that area of the tiled 
image show through.

I don't really want to mess with creating a patterned button to lay over 
the field as a fake selection rectangle. Does anyone know of a trick to 
prevent the inaccurate pattern when the field isn't scrolled to an even 
increment?

I suppose another option is to script the field to snap to the next 
lineheight increment but if there's a better trick I'd prefer it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list