Check Boxes in Text Fields

Jan Schenkel janschenkel at yahoo.com
Tue Jan 27 10:52:51 EST 2009


--- SparkOut <SparkOutYNY at gmail.com> wrote:
> 
> 
> J. Landman Gay wrote:
> > 
> > Gregory Lypny wrote:
> >>     Hello everyone,
> >> 
> >>     I'd like to have functional check boxes at
> the beginning of each 
> >> line of a text field.  Is there some way to get
> the actual button in 
> >> there or would I create an image of both a
> checked and unchecked box and 
> >> then toggle the imageSource?
> > 
> > I've always toggled the imagesource. Any other way
> is a scripting
> > nightmare.
> > 
> > -- 
> > Jacqueline Landman Gay         |    
> > 
> Sorry to hijack this question, but on the same
> subject - is there any way to
> handle the toggling other than stepping line by line
> through the field,
> checking the appropriate item and choosing the
> relevant imagesource? I find
> working on the field this way very slow.
> For speed I'd like to do this in a variable and put
> the finished list into
> the field, but you can't set the imagesource of a
> chunk of a variable, only
> a field (that I know).
> Is there a better way than I've got in my head?
> 

You can always build the field's htmlText in one go,
and set it after you're done.

HTH,

Jan Schenkel.

Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

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


      



More information about the use-livecode mailing list