Selection wierdness

General TRichView support forum. Please post your questions here
Post Reply
Hanno
Posts: 22
Joined: Sun Mar 05, 2006 12:28 pm

Selection wierdness

Post by Hanno »

Hi, if I have text like the following:
This is nicce
The word nicce appears with the red squiggly line underneath. If I select the whole line from left to right, then right-click over the word nicce, the line deselects and only the word nicce is selected. Why does that happen?

Is there any way to inhibit this behavior?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TRichView does not select words on rightclick.
Probably, it was done inside some event. For example, in OnPopup event of popup menu associated with this TRichView.
Search your code for GetCurrentMisspelling calls. This method (optionally) selects the current misspelled word.
Hanno
Posts: 22
Joined: Sun Mar 05, 2006 12:28 pm

Post by Hanno »

Thank you Sergey, yes it was the GetCurrentMisspelling function. Many thanks.
Post Reply