Checkbox/field related question

Mark Wieder mwieder at
Sat Feb 26 13:50:41 CST 2005


KR> Personally, my suggestion would be to use a list field with two separate
KR> images, one rectangle with a check mark, and one rectangle without. That

That would be my approach, too. Assuming that you're already setting
the image by setting the html content of the line, then all you need
to do is change the imageSource and set the htmlText again.

function Available strWhat
  return "<img src=" & quote & "unchecked.gif" & quote & ">" & strWhat
end Available

function Unavailable strWhat
  return "<img src=" & quote & "checked.gif" & quote & ">" & strWhat
end Unavailable

set the htmlText of line whichLine of field "myField" to \
  Available(the hilitedText of field "myField")

-Mark Wieder
 mwieder at

More information about the use-livecode mailing list