List to checkboxes how to?

J. Landman Gay jacque at hyperactivesw.com
Sat Sep 13 13:11:49 EDT 2008


Stephen Barncard wrote:
> Does this method work faster than using a background?

I don't know, I've never used a background. I like the image solution. 
Though as Eric points out, the images may become obsolete if the OS 
changes.

> 
>>
>> Whenever you want to set the state of the checkbox, do this:
>>
>>   set the imagesource of char 1 of line <line number> of fld "list" to 
>> <imgID>
>>
>> The "imgID" variable is the ID of the correct image, "checked" or 
>> "unchecked". Your scripts can determine whether the line is checked or 
>> not by simply reading the imagesource of the first character of the 
>> line, which will be the ID of the appropriate image.
>>
>>
>> -- 
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> 


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list