Why CheckAsYouTypeOptions.Active always False ?

General TRichView support forum. Please post your questions here
Post Reply
11111
Posts: 27
Joined: Sat Feb 07, 2015 12:02 pm

Why CheckAsYouTypeOptions.Active always False ?

Post by 11111 » Sun Apr 16, 2017 5:13 pm

if I set
RVdxSpellChecker1.CheckAsYouTypeOptions.Active := True;

then spell checking works, but when I try to get
state of RVdxSpellChecker1.CheckAsYouTypeOptions.Active it always false, why ?

Sergey Tkachenko
Site Admin
Posts: 14398
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Why CheckAsYouTypeOptions.Active always False ?

Post by Sergey Tkachenko » Mon Apr 17, 2017 7:44 pm

We had to disable devexpress checkasyoutype mechanism to use our own one. But assignment to this property is respected

11111
Posts: 27
Joined: Sat Feb 07, 2015 12:02 pm

Re: Why CheckAsYouTypeOptions.Active always False ?

Post by 11111 » Mon Apr 17, 2017 11:42 pm

So is there any way to know from spellchecker his checking active state ?

Sergey Tkachenko
Site Admin
Posts: 14398
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Why CheckAsYouTypeOptions.Active always False ?

Post by Sergey Tkachenko » Tue Apr 18, 2017 3:43 pm

Not from DXSpeller, sorry.
It has a private variable FStoredCheckAsYouTypeOptions, it is used to restore CheckAsYouTypeOptions.Active when moving focus away from TcxTRichViewEdit, but it is not accessible from outside.
So you need to store this state in a separate variable, when you turn live spelling on/off.

Post Reply