HunSpell

General TRichView support forum. Please post your questions here
Post Reply
armagnac
Posts: 12
Joined: Tue Mar 05, 2024 8:35 am

HunSpell

Post by armagnac »

Hi,

I try to install this functionnality in my project.
I put on the form a RVAHunSpellInterface, a RVHunSpell, a RVAControlPanel and I affect properties.
When I run the program I get an error in

procedure TRVAHunSpellInterface.DoSpellFormLocalize(Sender: TRVHunSpell;
Form: TfrmRVCustomSpell_);
begin
LocalizeSpellForm(Form, FControlPanel);
end;

It seems the FControlPanel is nil, but I don't see where I can affect my RVAControlPanel into the TRVAHunSpellInterface : no property published, no procedure to set the RVAControlPanel as FControlPanel.

Thank you for your help
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: HunSpell

Post by Sergey Tkachenko »

Do you call RVHunSpell.Check() yourself?
If you assigned RVHunSpell to RVAHunSpellInterface.HunSpell, you should not call RVHunSpell.Check() (because it will attempt to localize a spell-checking dialog and will fail).

Instead, use TrvActionSpellCheck action. This action assigns RVAHunSpellInterface.FControlPanel temporary while checking.

If you still need to call RVHunSpell.Check() yourself, assign RVAHunSpellInterface.HunSpell = nil, perform spelling checking, then restore.
Post Reply