Discussion:
questions about richedit
(too old to reply)
nw61
2008-11-19 15:30:31 UTC
Permalink
When using richedit,I found some questions:

1. stream in is too slow,especially when file is larger than 1M.I
guess maybe it's as richedit only read 4k bytes when it calls
streamincallback each time.Can I increase richedit's stream in size?

2. I want to record the scroll pos and caret pos for next time
open.But when scroll pos is more than 2000 lines,richedit cannot
scroll to the correct pos.I tried setscrollpos,linescroll,scrollcaret
but all failed.I also tried to scroll several times,then I found it
scrolled to the end of the text.

3. When opening a file including excel sheet,I found the rtf datas are
changed although the context displayed in richedit was not.I don't
know why.

4. the support to tables of richedit seems not well.How can I add some
table operations?

Are there some open source edit components support RTF format data
like richedit?
Christian Kaiser
2008-11-23 16:04:30 UTC
Permalink
In short: RTF is not designed with these tasks in mind. That's what MS
told us when we asked (as MS solution provider) because of similar
problems.

Scrolling is incorrect for large number of lines, table support is
plain buggy, etc.

As for streaming, we did not find it so bad, however. I don't know the
exact times any more, but I do not remember it being terribly slow.

Well that's how it is. Sorry.

Christian
Post by nw61
1. stream in is too slow,especially when file is larger than 1M.I
guess maybe it's as richedit only read 4k bytes when it calls
streamincallback each time.Can I increase richedit's stream in size?
2. I want to record the scroll pos and caret pos for next time
open.But when scroll pos is more than 2000 lines,richedit cannot
scroll to the correct pos.I tried
setscrollpos,linescroll,scrollcaret
but all failed.I also tried to scroll several times,then I found it
scrolled to the end of the text.
3. When opening a file including excel sheet,I found the rtf datas are
changed although the context displayed in richedit was not.I don't
know why.
4. the support to tables of richedit seems not well.How can I add some
table operations?
Are there some open source edit components support RTF format data
like richedit?
Loading...