Solved

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

Posted on 2003-11-19
1
290 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
ID: 9778760
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 64
FMX enumerated colours 2 98
How to renew a Delphi rad-studio licence? 5 63
Twebbrowser add css to the header 3 24
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 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