Solved

Could some teach me how to hide the SelStart and SelLength in TRichEdit?

Posted on 2003-11-19
1
288 Views
Last Modified: 2011-09-20
I just started an application that change the attributes of the word entered in the richedit according to word level (i.e. level 1 dog, cat, apple - simple words). It is a live checker it means it would check everytime a character is entered. I got how to do this using selstart and sellength but the problem is whenever I entered character(s) it would flicked obviously from the selstart and sellength. Anyway I'm using AddictSpell3's richedit so that my application has an spell check feature. Does AddictSpell's richedit use selstart and sellength to put a distorted line below the wrongly spelled word?
0
Comment
Question by:edwinaceron
1 Comment
 
LVL 27

Accepted Solution

by:
kretzschmar earned 180 total points
Comment Utility
u could try this

uses richedit;  //richedit is used

....
  richedit1.perform(EM_HIDESELECTION,1,0); //hide selection
  //do your stuff
  richedit1.perform(EM_HIDESELECTION,0,0); //show selection
...

not tested

>Does AddictSpell's richedit use selstart and sellength to put a distorted
>line below the wrongly spelled word

i don't know, could be also done internal there

meikl ;-)

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now