Sarah Reichelt wrote: > Try this: > > make a list field (mine was scrolling) with several lines > click on the lines in turn to select them > - this all works fine > > Now change the colour of any line (mine is specified with the variable x) > using: > set the foregroundColor of line x of fld 1 to red > The colour changes perfectly but that line is no longer selectable. You > have > to empty that field and start again.
Verified. > If you find the chunk of the line (I do this by selecting it & then > getting > the selectedChunk), and use that as the colour change parameter, it all > works fine. > > set the hilitedLine of fld 1 to x > get the selectedChunk of fld 1 > set the foregroundColor of it to red > set the hilitedLine of fld 1 to 0 Verified -- but on the second selection after running the script the line is not selectable. > Presumably this is a bug, but in the meantime, is there an easier way to > find the chunk expression that describes a line? Not quite sure I understand exactly what you want, but you could do something like: put the num of chars in line 1 to x of fld 1 into tNumChars to find the character number of the last character in line x. And to find the number of the first character in line x: put tNumChars - the num of chars in line x of fld 1 + 1 Cheers, Michael -- Michael Fisher <[EMAIL PROTECTED]> <http://www.runrev.com/> Runtime Revolution Ltd - Power to the Developer! Tel: +44 (0)870 747 1165 Fax: +44 (0)1639 830 707 _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
