• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

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

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
edwinaceron
Asked:
edwinaceron
1 Solution
 
kretzschmarCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now