Discussion:
New Word Processor
(too old to reply)
Tom420
2008-06-27 06:15:48 UTC
Permalink
Hi,

I don't want to reinvent the wheel, nor write just another Word clone
here. I want to write a special purpose word processor. Very simple in
fact (no need for graphic, table, etc, just text with styles and color)
but I was unable to find a component to start from (not even
commercial). So I pretty much decided to write my own engine.

My problem is, I don't know from where to start. I don't understand the
TCustomMemo class (is there suppose to be a way to render things the way
I want in there?) and TRichEdit is not even a remote possibility.

Where should I start from? Some Canvas and some MS function to render a
cursor?

Thanks in advance for any suggestion,
Tom :)
Johannes Weinert
2008-06-27 06:30:48 UTC
Permalink
Hi,
Post by Tom420
Hi,
I don't want to reinvent the wheel, nor write just another Word clone
here. I want to write a special purpose word processor. Very simple in
fact (no need for graphic, table, etc, just text with styles and color)
but I was unable to find a component to start from (not even
commercial). So I pretty much decided to write my own engine.
[...]
did you consider using TRichView <http://www.trichview.com/>?

From the homepage: "TRichView is a suite of native Delphi/C++Builder
components for displaying, editing and printing hypertext documents."

HTH

Hans
Tom420
2008-06-27 22:40:33 UTC
Permalink
Post by Johannes Weinert
Hi,
Post by Tom420
Hi,
I don't want to reinvent the wheel, nor write just another Word clone
here. I want to write a special purpose word processor. Very simple in
fact (no need for graphic, table, etc, just text with styles and
color) but I was unable to find a component to start from (not even
commercial). So I pretty much decided to write my own engine.
[...]
did you consider using TRichView <http://www.trichview.com/>?
From the homepage: "TRichView is a suite of native Delphi/C++Builder
components for displaying, editing and printing hypertext documents."
HTH
Hans
So you think I should give up the idea of writing my own, do you? :p

Yes I considered TRichView, which I believe would do the job... but it's
a $300 component, which is kind of a turn-off right now. I wasn't
exactly going for a project that would pay (it might, but wasn't the
initial goal).
Vladimir Stefanovic
2008-06-28 21:21:05 UTC
Permalink
Hi,

Why don't you look at BCB6 Examples:
c:\Program Files\Borland\CBuilder6\Examples\Apps\RichEdit\

Threre is a whole project about that.


Best Regards,
Vladimir Stefanovic

Loading...