turning a list into something more complex

Devin Asay devin_asay at byu.edu
Tue May 30 11:52:11 EDT 2006


On May 30, 2006, at 9:31 AM, R.Beynon at liverpool.ac.uk wrote:

> I'm writing a program that will eventually create a tabbed line,  
> multiple lines
> in a field.
>
> Is there any way I can display each line (or a subsection thereof)  
> and place
> beside it a series of check boxes or pull down boxes.
>
> peptide 1 1234.5  [chk1]  [..]   [..]  pulldowncolour  pulldownstyle
> peptide 2 2334.5  [chk2]  [..]   [..]  pulldowncolour  pulldownstyle
>
> Say I was drawing a graphic controlled by the list, and I wanted to  
> use check
> boxes to say "display this" or "Colour this red/green/blue  
> (pulldown)". I have
> tried to think this through, but I can't see an easy way at all.  
> The number of
> items in the list are such as to require that I can scroll through  
> the items.
>
> Impossible? (I know nothing is impossible in rev, so I guess I mean  
> "possible?"

Rob,

I've done something like this before, and the easiest way is to make  
a large field without scrollbars and create checkboxes and/or option  
lists btns that are aligned to the lines in the field. Then group all  
of them and make the group smaller than the field, adding a vertical  
scrollbar to the *group*. You'll also have to lock the group's size  
and location to prevent it from automatically resizing to show the  
whole group. Once the group's scroll bar is in place you can scroll  
everything in the group together and it looks like the other controls  
are part of the group. It's also possible using this approach to  
dynamically create the number of checkboxes and option menus you need  
based on the number of lines in the field.

HTH
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list