[REBOL] How to properly count lister size?
From: petr::krenzelok::trz::cz at: 25-Aug-2000 18:18
I tried to parse out some website and wanted to display links together
with description and image in a list. However, - I am encountering some
problems using 'supply.
... btw: lists are the most difficult part of /View to understand. It's
mixed with listers and one has to know inners of /View face interface.
The worst and the least intuitive part is 'supply itself. Where does the
'count come from etc etc ...
So, let's say my list size is 500x400. I have 80 pixels wide rows:
seznam: list 580x400 [
; img: image 100x100
film: text 200x15 font [color: 1.1.251 shadow: none image:
none] [print film/text]
; at 101x16
desc: text 400x80 font [size: 10 color: 1.1.1 shadow: none]
] supply [
count: count + num
either (count <= length? titles) [
film/text: pick titles count
; img/image: load pick images count
desc/text: pick descriptions count
][ film/text: copy ""
desc/text: copy ""
lista: slider 16x400 length? titles [print lista/data num:
lista/data - 1 show seznam]
So, length? titles returns 21. Once I scroll to the bottom of the
slider, it shows some binary??? strings ... Note: descriptions string
are large and don't fit in the 80 pixels wide rows ...
How to properly set slider size, please?