[REBOL] text-list/picked: extra internal behavior?
From: greggirwin::mindspring::com at: 26-Nov-2001 11:15
Hi All,
Does anyone know what extra "thing" I need to do to make the following work?
I have a text-list with a label (text face) above it. When the user clicks
on the label, I add stars to all the items that are currently selected,
using the technique from VID Notes.
print mold lst/lines
foreach item lst/picked [append item "*"]
print mold lst/lines
This works fine, and the print statements show that lst/lines is kept in
sync with lst/picked, *if* the items have been selected by the user (i.e.
with the mouse).
If I programmatically set the picked values, like this:
clear lst/picked
; I thought maybe alter didn't like using a block, but foreach fails as
well.
alter lst/picked probable-parts show actor
;foreach part probable-parts show actor [
; alter lst/picked part
;]
it doesn't work. lst/lines is not modified to stay in sync with lst/picked
when they click on the label in this case.
I looked at the view source for text-list, but the only thing that jumped
out at me (as far as extra behavior a click would cause) was this:
do :act slf f/text
and I couldn't figure out where :act was to see what it was doing. Must be
too early. :)
Thanks for any suggestions or ideas.
--Gregg