Click to See Complete Forum and Search --> : Creating a editor from scratch


Trond-Eirik Kolloen
May 19th, 1999, 03:01 PM
Hello

Can anyone point me to stuff about creating your own text editor from scratch?
The text editor should allow the user to edit text on the fly, to cut, copy and paste, to format text and so on.
Of the more complex type is table editing, special objects editing and so on. (maybe by adding ActiveX support to the editor, we are not sure yet)
I have considered using the CRightEditCtrl, but it does not seem to cower my needs.
What I am mainly interested in is: (ordered by priority)
- Books about this topics
- How to calculate text flow and placement
- How to draw and format text (is CDC::DrawText and functions like that what I have to help me? Must I create my own text drawing functions and so on...
- Parsing techniques
- Optimizing the view update to avoid flicking
- Cursor handling and considerations

It's actually many of the same topics that you have to consider if you try to write an HTML browser...

Hope someone can get me on to the right track here.

May 19th, 1999, 04:12 PM
Check the MFC samples in MSDN there are two projects that may help you, they are Superpad and Wordpad, they are simple text editors, Wordpad being the app usually supplied on most Windows systems....

May 19th, 1999, 04:25 PM
I would suggest Design Patterns -
Elements of Reusable Object-Oriented Software
Addison-Wesley
ISBN 0-201-63361-2

Regards,
Mark