inactive field after setting htmlText

Jan Schenkel janschenkel at yahoo.com
Wed Sep 10 08:48:01 EDT 2003


--- Keith Martin <keith at vortex.co.uk> wrote:
> [snip]
> 
> 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.
> The scroll 
> button, borders and even text shows as
> grey/disabled, although I can 
> force scrolling to happen by clicking and
> drag-selecting far enough.
> 
> [snip]
> 
> Any ideas? Is there a solution? What's the cleanest
> workaround that I 
> could use for a tutorial? Is there a neat way to
> side-step this 
> problem entirely?
> 
> k
> -- 

Hi Keith,

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

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the use-livecode mailing list