Hi Anton,

I looked at your code. Interesting solution, thanks for your work. I 
understand now that programming with the list style en choice is al 
littebit more complex then I thought. I' am just a beginner, maybe i 
should try something less complex :-)

Tim

Anton Rolls wrote:

>Hi Tim,
>
>Yes, I suggest change of strategy.
>CHOICE style is very complex, getting it to
>iterate would be difficult.
>So it's better to use some other simpler style (such as a TEXT)
>and only pop up the menu with CHOOSE (which is what the CHOICE
>style uses) when you are changing the value.
>
>do
>http://www.lexicon.net/antonr/rebol/gui/iterated/demo-list-of-texts-with-con
>text-menu.r
>
>Note I added an extra field to your db block.
>You might want to modify the above code to use the
>series index of the ["true" "false"] blocks to
>indicate the value that should be shown.
>Then you don't need an extra field.
>
>Anton.
>
>  
>
>>It's more difficult then I thought. The next problem is that I want  to
>>use this in a iterrated list. For every row in the list it has to be
>>possible to chance the choice-buttons independent of each other, the
>>data is comming from a database-block. I think I'am missing some copy
>>statement somewhere. I tried several options but nothing is working.
>>
>>The choice-buttons get changed but they are not working independent,
>>only the first one. So there is some problem with sharing....
>>
>>Thanks for any help.
>>
>>
>>rebol []
>>db: [
>>    ["1" "question 1 " ["true" "false"]]
>>    ["2" "question 2"  ["true" "false"]]
>>    ["3" "question 3"  ["true" "false"]]
>>]
>>offset: 0
>>db-size: does [length? db]
>>
>>out: layout [
>>    text "list example"
>>    across
>>    mylist: list 640x480 [across t1: text 50 t2: text 200x40 para
>>[wrap?: true] c1: choice "1" "2" ] supply [
>>        supply-data face count index
>>    ]
>>    sld: scroller 10x480 [offset: to-integer sld/data * db-size
>>    
>>
>
>  
>

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to