Hilite pattern in list field doesn't scroll correctly

Terry Judd terry.judd at unimelb.edu.au
Mon Aug 6 23:20:40 EDT 2012


Is there any reason why you don't want to use a datagrid?

Sent from my iPhone

On 07/08/2012, at 12:34 PM, "J. Landman Gay" <jacque at hyperactivesw.com> 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
> 





More information about the use-livecode mailing list