Hilite pattern in list field doesn't scroll correctly

Björnke von Gierke bvg at mac.com
Sat Aug 11 12:08:34 EDT 2012

don't set the hilitepattern, set the backgroundpattern instead.

On 07.08.2012, at 04:33, J. Landman Gay wrote:

> 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
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


Use an alternative Dictionary viewer:

Chat with other RunRev developers:

More information about the use-livecode mailing list