XP: clear function on XP
[1/4] from: luc::spirlet::skynet::be at: 19-Jan-2005 1:14
The clear function is perfect with linux and win98.
How to explain a few characters with this function on XP?
The know-how is replace a variable.
Here, we accord our confidence to a function. The behavior
is different.
Need to replace the variable? That's the question.
It's not a great problem.
It's with rebol/view.
Need the code:
button "Erase the zone " 0.0.233 100x60[
clear err/text show err
]
This code causes a line with a few characters in area object.
err is an area object.
On XP only.
I've made the test on win98 and on linux mandrake 9.
No problems.
I must set this program on an XP environment.
err/text: ""
Is it a better portable solution? I can believe it.
Thanks for help.
Luc Spirlet
[2/4] from: greggirwin::mindspring::com at: 19-Jan-2005 10:57
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
[3/4] from: luc:spirlet:skynet:be at: 23-Jan-2005 21:24
Gregg Irwin wrote:
>Hi Luc,
>SL> This code causes a line with a few characters in area object.
<<quoted lines omitted: 4>>
>you.
>-- Gregg
I've tried the code: clear err/line-list
No effect. But I've maybe misused this solution.
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
[4/4] 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,
<<quoted lines omitted: 14>>
> 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.
<<quoted lines omitted: 7>>
> 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
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted