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
HunSpell
-
- Site Admin
- Posts: 17553
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: HunSpell
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.
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.