RVAddictSpell3 don't wavy line protected text

General TRichView support forum. Please post your questions here
Post Reply
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

RVAddictSpell3 don't wavy line protected text

Post by johnF »

Hi,

Is there a way to prevent the RVAddictSpell3 component from putting the wavy lines under protected text (rvprModifyProtect)?

Cheers, Jim.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Words are checked in TRichViewEdit.OnSpellingCheck event.
It has StyleNo parameter, so you can write:

Code: Select all

Misspelled := not(rvprModifyProtect in Sender.Style.TextStyles[StyleNo].Protection) and not RVAddictSpell31.WordAcceptable(AWord);
johnF
Posts: 27
Joined: Mon Feb 02, 2015 4:41 pm

Post by johnF »

Perfect, Thanks.
Post Reply