Assorted bugs?
[1/7] from: atruter:hih:au at: 6-May-2002 16:15
Another marathon weekend with REBOL and a few more "things that don't work
the way I expect them to". Apologies in advance if some of these have
already been covered in depth (eScribe searches just don't cut it ;) ).
Problems I hit were:
1. Scrolled area text affecting other field(s)
2. text-list anomalies with first entry
3. alt-down SLOW under windows (but OK under Linux)
4. load treating a one line block as a block, but multi-lines as blocks
within a block, makes it hard to write something like:
foreach block load %test.dat [print block/1] ; this handles 0 and > 1
lines but not 1 line
Anyway, the code to demo these "problems" is given below, any advice on
simple work-arounds / misconceptions greatly appreciated. If any need to go
to feedback let me know. (On a related matter, how can one tell what has
already been sent to feedback . . . is there a "reported bug" summary of
some sort?).
<code>
REBOL []
files: copy []
foreach file read %. [
insert tail files reform ["o^-" file]
]
view center-face layout [
text 200 {Click "Area" then type two lines of text in the area, close and reopen the
window.
Notice how the field text has been repositioned.}
button 200 "Area" [
view/new center-face layout [
field 50 "Text"
area 50x30
]
]
text 200 {Notice how the first tab is ignored.}
text-list data files
text 200 {Click rapidly with the left then right mouse buttons.
Notice how left clicks are faster than right clicks [on Windoze].}
box blue 200x50 "Click here" with [
data: now/time/precise
feel: make feel [
engage: func [face action event] [
if action = 'alt-down [
print reform ["Right" now/time/precise - face/data] face/data: now/time/precise
]
if action = 'down [
print reform ["Left" now/time/precise - face/data] face/data: now/time/precise
]
]
]
]
text 200 {The first result counts values within a block, the second the number of blocks.}
button 200 "Load block(s)" [
write/lines %test.dat remold [now now]
print length? load %test.dat
write/append/lines %test.dat remold [now now]
print length? load %test.dat
]
]
</code>
Regards,
Ashley
[2/7] from: philb:upnaway at: 6-May-2002 16:00
Hi Ashley,
Work around for #2 is to use the AS-IS keyword.
i.e. change the text-list to :
text-list data files as-is
Cheers Phil
=== Original Message ===
Another marathon weekend with REBOL and a few more "things that don't work
the way I expect them to". Apologies in advance if some of these have
already been covered in depth (eScribe searches just don't cut it ;) ).
Problems I hit were:
1. Scrolled area text affecting other field(s)
2. text-list anomalies with first entry
3. alt-down SLOW under windows (but OK under Linux)
4. load treating a one line block as a block, but multi-lines as blocks
within a block, makes it hard to write something like:
foreach block load %test.dat [print block/1] ; this handles 0 and > 1
lines but not 1 line
Anyway, the code to demo these "problems" is given below, any advice on
simple work-arounds / misconceptions greatly appreciated. If any need to go
to feedback let me know. (On a related matter, how can one tell what has
already been sent to feedback . . . is there a "reported bug" summary of
some sort?).
<code>
REBOL []
files: copy []
foreach file read %. [
insert tail files reform ["o^-" file]
]
view center-face layout [
text 200 {Click "Area" then type two lines of text in the area, close and reopen the
window.
Notice how the field text has been repositioned.}
button 200 "Area" [
view/new center-face layout [
field 50 "Text"
area 50x30
]
]
text 200 {Notice how the first tab is ignored.}
text-list data files
text 200 {Click rapidly with the left then right mouse buttons.
Notice how left clicks are faster than right clicks [on Windoze].}
box blue 200x50 "Click here" with [
data: now/time/precise
feel: make feel [
engage: func [face action event] [
if action = 'alt-down [
print reform ["Right" now/time/precise - face/data] face/data: now/time/precise
]
if action = 'down [
print reform ["Left" now/time/precise - face/data] face/data: now/time/precise
]
]
]
]
text 200 {The first result counts values within a block, the second the number of blocks.}
button 200 "Load block(s)" [
write/lines %test.dat remold [now now]
print length? load %test.dat
write/append/lines %test.dat remold [now now]
print length? load %test.dat
]
]
</code>
Regards,
Ashley
[3/7] from: anton:lexicon at: 6-May-2002 22:34
That didn't seem to work for me.
ie. The following two lines show the same error:
view center-face layout [text-list data files]
view center-face layout [text-list data files as-is]
Anton.
[4/7] from: anton:lexicon at: 6-May-2002 23:24
I am pretty sure I reported this many months ago.
RT keep their own bug database but they keep it
private for now.
Anton.
[5/7] from: philb:upnaway at: 7-May-2002 8:53
Hi Anton,
now this is strange ....
Example where as-is works ...
REBOL []
files: copy []
foreach file read %. [
insert tail files reform ["o^-" file]
]
view center-face layout [text-list data files as-is]
view center-face layout [text-list data files]
Example that doesnt work ...
REBOL []
files: copy []
foreach file read %. [
insert tail files reform ["o^-" file]
]
view center-face layout [text-list data files]
view center-face layout [text-list data files as-is]
A further view bug ?
Cheers Phil
=== Original Message ===
That didn't seem to work for me.
ie. The following two lines show the same error:
view center-face layout [text-list data files]
view center-face layout [text-list data files as-is]
Anton.
[6/7] from: riusa:email:it at: 7-May-2002 9:27
Hi all,
about text-list, I found this problem (I think it is a problem!):
view layout [text-list "a" "b" "a"]
If a user select the first "a" text-list even select the third "a".
It should be a good thing to manage text-list with an index and not
directly with the text (maybe creating a new component "text-list-index")?
bye!
--Alessandro--
> Hi Ashley,
> Work around for #2 is to use the AS-IS keyword.
<<quoted lines omitted: 15>>
> Anyway, the code to demo these "problems" is given below, any advice on
> simple work-arounds / misconceptions greatly appreciated. If any need
to go
> to feedback let me know. (On a related matter, how can one tell what has
> already been sent to feedback . . . is there a "reported bug" summary of
<<quoted lines omitted: 7>>
> view center-face layout [
> text 200 {Click "Area" then type two lines of text in the area,
close and reopen the window.
> Notice how the field text has been repositioned.}
> button 200 "Area" [
<<quoted lines omitted: 7>>
> text 200 {Click rapidly with the left then right mouse buttons.
> Notice how left clicks are faster than right clicks [on
Windoze].}
> box blue 200x50 "Click here" with [
> data: now/time/precise
> feel: make feel [
> engage: func [face action event] [
> if action = 'alt-down [
> print reform ["Right" now/time/precise -
face/data] face/data: now/time/precise
> ]
> if action = 'down [
> print reform ["Left" now/time/precise -
face/data] face/data: now/time/precise
> ]
> ]
> ]
> ]
> text 200 {The first result counts values within a block, the
second the number of blocks.}
> button 200 "Load block(s)" [
> write/lines %test.dat remold [now now]
<<quoted lines omitted: 14>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
++++++++++++++++++++++++++++++++++++++++++++
Alessandro Manotti
Presidente dell'Associazione "RIUSA"
Sito web: http://riusa.apritisesamo.net
email: [riusa--email--it]
mailing-list: [riusa-ml--yahoogroups--com]
Telefono: 347.63.43.231
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Divertiti a sfrecciare nel traffico cittadino o sui marciapiedi, con il monopattino Crazy!
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=423&d=7-5
[7/7] from: rotenca::telvia::it at: 7-May-2002 18:42
Hi Phil,
You must use copy, text-list modifies data block if you don't use as-is.
---
Ciao
Romano
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted