Managing the hilite color of selected text

Dave Cragg dave.cragg at lacscentre.co.uk
Tue Sep 27 19:04:48 EDT 2011


On 27 Sep 2011, at 21:19, Pete wrote:

> So far I have tried to use an openField handler to achieve this.  Right now,
> I'm just trying to deal with the situation where the user clicks back into
> the field, by setting the background color of the field to either empty or
> white, but neither method removes the highlight from the selected text and
> if I type more text into the field, it appears with the hilite background
> color.  Even if I delete all the text in the field and type new text in, it
> still appears with the blue background color.

Does it work if you do this?

set the backgroundColor of char 1 to -1 of field x to empty

Dave



More information about the use-livecode mailing list