CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1998
    Posts
    3

    Creating a editor from scratch

    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:rawText 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.



  2. #2
    Guest

    Re: Creating a editor from scratch

    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....


  3. #3
    Guest

    Re: Creating a editor from scratch

    I would suggest Design Patterns -
    Elements of Reusable Object-Oriented Software
    Addison-Wesley
    ISBN 0-201-63361-2

    Regards,
    Mark



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured