[ALLY] Text List
[1/3] from: philb::upnaway::com at: 13-Nov-2000 17:18
Hi Rebolers,
I am trying to indent some text with tabs in a text list ....
why dont the tabs get recognised on the first line?? Is this a known bug?
REBOL
[
Title: "test7.r"
Date: 13/11/2000
File: %test7.r
Version: 0.1
Purpose: "list-view test"
]
t-list: []
for i 1 10 1
[
insert tail t-list join "Line #" [ i "^(tab)" "Data After Tab"]
]
view layout
[
text-list data t-list 400x400
]
Cheers PHil
reported seperately to support.
[2/3] from: al:bri:xtra at: 13-Nov-2000 23:04
Phil wrote:
> I am trying to indent some text with tabs in a text list ....
>
> Why don't the tabs get recognised on the first line?? Is this a known
bug?
Congratulations! You've found a bug! And it's an interesting one too! Look
what happens to t-list _AFTER_ "view layout [...]" is executed:
>> t-list: []
== []
>> for i 3 10 1 [insert tail t-list join "Line ###>" [ i "^(tab)^(tab)"
Data After Tab
]]
== []
>> probe t-list
["Line ###>3^-^-Data After Tab" "Line ###>4^-^-Data After Tab" "Line
###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" "
Line ###>7^-^-Data After Tab" "Line ###>8^-^-Data After Tab" "Line
###>9^-^-Data After Tab" "Line ###>10^-^-Data After Tab"]
== ["Line ###>3^-^-Data After Tab" "Line ###>4^-^-Data After Tab" "Line
###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab
Li...
Note that the two tabs after "Line ###>3" are present in the first line.
>> view layout [text-list data t-list 400x400]
Now watch them disapear!
>> probe t-list
["Line ###>3 Data After Tab" "Line ###>4^-^-Data After Tab" "Line
###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" "Lin
e ###>7^-^-Data After Tab" "Line ###>8^-^-Data After Tab" "Line
###>9^-^-Data After Tab" "Line ###>10^-^-Data After Tab"]
== ["Line ###>3 Data After Tab" "Line ###>4^-^-Data After Tab" "Line
###>5^-^-Data After Tab" "Line ###>6^-^-Data After Tab" "
Line ...
Note that the two tabs after "Line ###>3" have vanished!
I've sent this on to feedback as well.
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/
[3/3] from: gchiu:compkarori at: 3-Dec-2000 9:08
Hi,
I have this line in my layout
imagedata: text-list 600x200 data savedimages [afunction]
where
savedimages: [""]
If I then
savedimages: [ large list ]
show imagedata
the scrollbar on the text-list does not change so that I can
not scroll through the list.
Here's the program
http://www.compkarori.co.nz/reb/imagegrabber.r
You can use http://www.rebol.com/logos.html
--
Graham Chiu
http://www.compkarori.co.nz/index.r