paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [paragui-users] RICHEDIT


From: John Rainey
Subject: RE: [paragui-users] RICHEDIT
Date: Thu, 5 Sep 2002 08:49:59 -0400

I think the tricky part is completing the lines. Basically one needs to add
the new parsed text to the the list of words as you point out, then delete
the last line and call a complete lines function which starts a specific
line (the old last line).

-----Original Message-----
From:   address@hidden
[mailto:address@hidden On Behalf Of Eric
Ross
Sent:   Wednesday, September 04, 2002 11:38 PM
To:     address@hidden
Subject:        RE: [paragui-users] RICHEDIT

Mensaje citado por John Rainey <address@hidden>:

> Yes it works! The add text function is still resetting the text however by
> calling settext with the new my_text value (my_text +" ") this causes a
> complete reparsing and refilling of the richtext maps. It seems
inefficient.
> Perhaps the richedit needs a Addtext function for appending text that
> doesn't require a complete reparsing?
> Any thoughts?

As i can see, the problem is: how do you know that adding some text does not
requiere reparsing ? The problem is that AddText works by getting the
complete
text and setting it again (I'd like an AddText function that takes into
account
that it's "adding" text, and not setting it).

Maybe you could override the AddText method in pgrichedit, and make the
ParseWords method just add the text (let it continue processing in the point
it
finished processing in the previous call). Or create a method similar to
ParseWords, but that doesnt clear the previous state, but adds the new
string
into the parsed words.

Eric.


_______________________________________________
paragui-users mailing list
address@hidden
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]