[ALLY] Re: text-list scrolling from program?
From: agem:crosswinds at: 4-Nov-2000 11:48
[ingo--2b1--de] wrote on 3-Nov-2000/1:14:40+1:00
> Hi Allies,
>
> if I set the /picked line in a text-list programmatically,
> this may be scrolled out of the display, how can I let the
> text-list scroll to show the picked line?
>
hacked a bit around. calculate yourself :)
[rebol[]
view/new layout[
tl: text-list data insert/dup ["hello" "ween"] "loeloeloe" 15
button "test"[
tl/sld/data: 0.99
tl/sld/action tl/sld 0.99
tl/picked: "hello"
show tl]
]
]
a: get-style 'text-list
probe a/facets
;probe a/sld/facets
do-events
> best regards,
>
> Ingo
>
may the source be with you :)
Volker