inactive field after setting htmlText

Keith Martin keith at vortex.co.uk
Wed Sep 10 09:28:01 EDT 2003


>  > Right, I've set the htmlText of a field to the
>>  contents of a
>>  variable, originally read from a file from disk.
>>
>  > When this is done the field acts partially disabled.


>A golden oldie :-) The quickest workaround :
>
>   set the htmlText of fld "Foobvar" to tStuff
>   -- changing the locktext forces redraw
>   repeat 2
>     set the lockText of fld "Foobar" to \
>         not the lockText of fld "Foobar"
>   end repeat


Excellent, thanks! I think I'll do the simpler "set the lockText of 
field 1 to true" "set the lockText of field 1 to false" with an 
explanation of why it is there. Better than having to explain repeat 
structures and self-referencing boolean statements at the point where 
this has to be handled. ;-)

k



More information about the use-livecode mailing list