Page 1 of 1

Selection wierdness

Posted: Thu Sep 14, 2006 7:33 pm
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?

Posted: Mon Sep 18, 2006 6:51 pm
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.

Posted: Mon Sep 18, 2006 11:19 pm
by Hanno
Thank you Sergey, yes it was the GetCurrentMisspelling function. Many thanks.