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

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • You probably have several goals for your patient portal of choice. Is "community" one of them? With a bevy of vendors offering portal solutions, it can be challenging for a hospital to know where to start. Fortunately, YourCareCommunity helps ease the decision-making process. Read this white paper to learn more. "3 Ways Clinicians can Leverage a Patient Portal to Craft a Healthcare Community" is a published document owned by www.medhost.com

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds