[REBOL] Re: Clear area
From: carl:cybercraft at: 6-Aug-2001 20:13
Neither of your methods work consistantly for me. If I enter lots of
text I'm sometimes left with a line of garbage text at the top, like
Jim was complaining about.
Ah - just remembered something. This from the View docs...
line-list: A BLOCK that is used to track the offsets of text lines
when text is being displayed. When more than 200 characters of text
are being displayed, this list should be set to NONE when large
changes are made to the text. This allows REBOL to recalculate the
locations of all TEXT lines.
So, adding a...
after you clear your text and before you show it would seem to be the
On 06-Aug-01, Anton wrote:
>> How can I clear a text area? i've used
>> my-area/text: "" show my-area
> The empty string referred to above will change
> when the user types something into the gadget.
> You can change that to;
> my-area/text: copy "" show my-area
> or as you tried;
> clear my-area/text show my-area
> Anyway this works for me:
> view layout [
> a: area "hello^/world"
> button [clear a/text show a]
> (or [a/text: copy "" show a] )