[REBOL] Re: XP: clear function on XP
From: volker::nitsch::gmail::com at: 23-Jan-2005 22:59
On Sun, 23 Jan 2005 21:24:40 +0100, Spirlet Luc <[luc--spirlet--skynet--be]> wrote:
> Gregg Irwin wrote:
>
> >Hi Luc,
> >
> >SL> This code causes a line with a few characters in area object.
> >SL> err is an area object.
> >
> >I think the issue is that the face's line-list doesn't get updated,
> >so it's displaying (or trying to) data that no longer exists. Try
> >clearing face/line-list and see if that takes care of the problem for
> >you.
> >
> >-- Gregg
> >
> >
> >
> >
> I've tried the code: clear err/line-list
> No effect. But I've maybe misused this solution.
err/line-list: none
to "clear" the line-list. nice word-confusion :)
It caches some pixel-information about the lines and needs to be
recalulated when text changes. which is signal by setting to none.
With betas you can also use
set-face err "a string"
which does that clearing automatically.
> For the moment, I've just set err/text: " "
> with a space because without a space I had yet a few characters.
> XP wants anything.
> Unfortunately, I don't have XP at home. And I don't know when I
> will can again test this situation.
> I had not the time to eliminate a possible situation with viruses.
> Regards,
> Luc
>
> --
> To unsubscribe from the list, just send an email to rebol-request
> at rebol.com with unsubscribe as the subject.
>
--
-Volker
Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem.
David
Wheeler