[REBOL] Re: Updating the scroll bar in a text-list in /View
From: gchiu:compkarori at: 28-Jan-2001 7:52
On Sat, 27 Jan 2001 05:43:31 -0600
"GS Jones" <[gjones05--mail--orion--org]> wrote:
> When I dynamically update the list elements in a list,
> the scroll bar does
> not seem to update. I can recreate the behavior in a
>From the list archives, Stirling said this before:
The slider does not update on the text list unless you tell
it to. I
use the following function in my code to update text-list
sliders
every time I mod the list.
The function refers to list/lc. lc is a word in a text-list
face that
is the number of visible lines of the list.
; updates the bar on the side of a text-list or group of
text-lists
fix-slider: func [faces [object! block!]] [
foreach list to-block faces [
either 0 = length? list/data [list/sld/redrag 1] [
list/sld/redrag list/lc / length? list/data]
]
]
--
Graham Chiu