Enhancements to Andrei Stcherbatchenko's Syntax coloring text editor

Environment: -->

Additions:

Ability to Disable Drag&Drop (via the CCrystalTextView::GetDisableDragAndDrop( void ), and CCrystalTextView::SetDisableDragAndDrop( bool bDDAD ) methods).

Ability to add description text to Undo/Redo actions (via the CCrystalTextBuffer::CanUndo( PTSTR cpDesc ), CrystalTextBuffer::CanRedo( PTSTR cpDesc ), and AddUndoRecord(BOOL bInsert, const CPoint &ptStartPos, const CPoint &ptEndPos, LPCTSTR pszText, LPCTSTR cpDesc = NULL ) methods).

Some notes:

Undo/Redo description text is stored in a 32 byte buffer, so the description limit is 31 characters Currently, no checking is done to verify the length!

All(?) of my changes can be found by searching for "[JRT]", which is near all of the changes that I made.

Download source - 43 KB

Date Last Updated: February 14, 1999



Comments

  • ExEditors Library

    Posted by Legacy on 03/19/2002 12:00am

    Originally posted by: Mike Philips

    A complete collection of editors in a single file:
    
    

    http://www.exontrol.com/sg.jsp?content=products/exeditors

    Regards,
    Mike

    Reply
  • IS THERE A RICHEDIT VERSION?

    Posted by Legacy on 04/25/2000 12:00am

    Originally posted by: Michael Yokoyama

    Hi, I'm looking for a Richedit version of this.

    Thanks,
    Mike

    Reply
  • 2 character??? (in korea)

    Posted by Legacy on 12/06/1999 12:00am

    Originally posted by: falcon, kim

    hello.
    
    

    CrystalEditor is good.

    hm...
    I live in korea.
    We use 2 bytes in one character.
    so
    if mouse point is on charcter,
    the charcter is broken..

    help me!!!!
    I want to use "crystaleditor class" with english and korean.

    pleaze tell me the method that use 1byte(english) and
    2bytes(korean) together.

    or tell me idea....

    thanks codeguru.....

    Reply
  • good work!

    Posted by Legacy on 08/30/1999 12:00am

    Originally posted by: Charlie

    a little bit good!!

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Confused by all the agile advice? Relax! With the Agile for Dummies eBook by your side you'll learn the fundamentals of agile and how to increase the productivity of your software teams while enabling them to produce higher-quality solutions that better fulfill customer needs much faster.

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds