[REBOL] Re: REBOL/View problems and questions
From: allen:aussieweb:au at: 17-Apr-2001 12:13
----- Original Message -----
From: "Christian Langreiter" <[c--langreiter--tirol--com]>
To: <[rebol-list--rebol--com]>
Sent: Monday, April 16, 2001 1:42 AM
Subject: [REBOL] REBOL/View problems and questions
> Hi REBOLs,
>
> I'm pretty new to /View (I've played with it about a year ago but since
> I have forgotten everything I knew about it) and I've to say it looks
> _good_. However, on my adventurous rides the first troublemakers are
> showing up. So those are my questions:
>
> A. I have a text-list in a layout. How can I change its contents at
> runtime? Nothing I have tried (tl/text, /texts, /data) worked. Is it
> possible at all?
Here is a very quick one. (Perhaps someone can dig out Sterling's example
which resizes the dragger for the contents, I don't have it on this machine)
view layout [tl: text-list "a" "b" "c" [append tl/data random 10 show tl]]
> B. I have a field in a layout the contents of which are changed via a
> button (f/text: "blah!"). Problem: Once I manually enter data into the
> field, I can't change it programmatically any more. Is this a bug or
> behaviour to be expected?
Use copy if you are assigning the "value".
view layout [f: field button "Click" [f/text: copy "blah!" show f]]
Cheers,
Allen K