Christopher Krause

Christopher Krause

  • NA
  • 24
  • 57.6k

Implementing a speedy AutoText using the SpellCheckText event

Jul 13 2011 4:22 AM
We just published a sample project that shows how to implement a very fast and reliable AutoText functionality.

Especially when typing a lot of letters, e-mails or any other text, repeating the same, long or complex words can be annoying. Modern word processors offer a functionality called AutoText that replaces pre-defined shortcuts with the actual string.

Since version 16.0 of TX Text Control, the SpellCheckText event is available. This event occurs, if the document's text has been altered. Generally, it is used to pass the changed text to a spell checking engine. In this sample, the event is used to check for the pre-defined shortcuts. If a typed word is a shortcut, it will be added to the MisspelledWordCollection.

The advantage of using the SpellCheckText event is that the words must not be selected using the Selection object which might cause a flicker. The words are replaced directly using TX Text Control's MisspelledWordCollection which results in a very reliable and fast replacement. It is not necessary to trap any keystrokes in order to check which characters have been typed.

Download the sample in our source code library:

How to implement a speedy AutoText using the SpellCheckText event


About TX Text Control:

TX Text Control was originally released in 1991, since then more than 50,000 copies have been sold. Starting off as a single, small DLL, TX Text Control has made its way through 16-bit DLL and VBX versions to today's Enterprise edition with its .NET and ActiveX components. The recent addition to the family, TX Text Control .NET Server, offers all of TX Text Control advanced word processing functionality in an easy-to-use server-side .NET component. Customers benefit from these years of experience, large user base, and at the same time, appreciate developing with a mature, reliable product.

Contact Informations:

[email protected]

North & South America:
Phone: +1 704-370-0110
Phone: +1 877-462-4772 (toll free)

Europe:
Phone: +49 (0)421 42 70 67 10

Asia Pacific:
Phone: +886 2-2797-8508

Answers (1)