Page 1 of 1

How to change spell check dictionary "on-the-fly" without changing UI language?

Posted: Fri Jul 05, 2019 5:06 pm
by Vitalii
Hi,
I'm using ASpell component for spell checking. All works fine, but I want to change dictionary "on the fly" — without changing UI language. I'll try to set RVASpell1.DictIndex := 0, 1, 2 (for example), but it's still use dictionary linked to UI language. Maybe I need to call some method for update/refresh? Can you help me?

Re: How to change spell check dictionary "on-the-fly" without changing UI language?

Posted: Sat Jul 06, 2019 7:58 am
by Sergey Tkachenko
UI language does not affect spelling.
You can see the demos in ThirdParty\ASpell\Demos\
They change spelling language with this code:

Code: Select all

  RichViewEdit1.ClearLiveSpellingResults;
  RVASpell1.DictIndex := ComboBox1.ItemIndex;
  RichViewEdit1.StartLiveSpelling;

Re: How to change spell check dictionary "on-the-fly" without changing UI language?

Posted: Wed Jul 10, 2019 9:05 am
by Vitalii
Thanks, Sergey!