Hi Mark, I use a repeat loop to put the text of each line into the field. Once it's there, I set the image source of of the appropiate chars of the line.
I have to have a repeat loop but if I'm understanding you correctly, you're recommending: - put the text of each line into a variable within the loop - at the end of the loop, insert the appropriate html into each line of the variable - set the htmltext of the field to the variable Do I have that right? Pete lcSQL Software <http://www.lcsql.com> On Mon, Jul 30, 2012 at 12:39 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Pete, > > Are you using a repeat loop? Don't do that. Instead, take the htmlText, > replace a character with the appropriate html (have a look at the htmlText > after setting an imageSource to find out the correct HTML code) and set the > htmlText of the field to the modified data. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. > Contact me http://qery.us/du > > > > On 30 jul 2012, at 20:38, Peter Haworth wrote: > > > I have a scrolling list field which I'm populating with lines of text and > > also setting the imagesource of up 5 chars. It turns out that it takes > an > > average of about one tenth of a second per line to set the imagesources, > so > > to populate the field with 100 lines takes 10 seconds. > > > > These images become hotspots for the user to click on and I would like to > > stick with that as a user interface if possible but the length of time > it's > > taking is obviously not acceptable. > > > > I'm wondering if anyone has any suggestions as to how improve the > > performance or perhaps another technique to show image hotspots in a line > > of text. > > > > Pete > > lcSQL Software <http://www.lcsql.com> > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode