Page 1 of 1
RichViewActions with Addict4
Posted: Tue Oct 13, 2009 6:13 pm
by gdenny
I have live checking with red squiggly lines but need to present dialog on
right click or F7 with addict4. It works if I drop TRVAddictSpell3 and link it
with rvaControlPanel but rvaControl panel has no options to link to the
AddictSpell component of version 4. Also, in the actionlist's standard
actions there is TrvActionAddictSpell3 but no TrvActionAddictSpell4.
What did I do wrong? Thanks.
Posted: Tue Oct 13, 2009 7:15 pm
by Sergey Tkachenko
TRVAddictSpell3 is based on TAddictSpell3.
TAddictSpell3 is declared both in Addict 3 and Addict 4.
Addict 4 includes two spelling components: TAddictSpell and TAddictSpell3. I do not see benefits of inheriting TRVAddictSpell3 from TAddictSpell, so I left the same code for Addict 3 and 4.
If I missed something, let me know.
Posted: Tue Oct 13, 2009 8:52 pm
by gdenny
Thanks for the quick response. So you are saying that I should use the
TAddictSpell3 component instead of the TAddictSpell component?
The only bothersome thing is that the help file from addict says "This
component is provided only for Addict 3 compatibility and should not be used for new code going forward. Please use the TAddictSpell component as it completely replaces the functionality available here".
Thanks.
Posted: Wed Oct 14, 2009 1:59 pm
by Sergey Tkachenko
You should use TRVAddictSpell3. In the current version, it is inherited from TAddictSpell3. If, in future, I decide to inherit it from TAddictSpell, you will not need to change your existing code.
Posted: Wed Oct 12, 2011 8:13 pm
by waeberd
Hi Sergey,
Any news on this?
Is there a TRVAddictSpell* component that inherits from TAddictSpell to have a nice Addict v4 support?
Thanks, Daniel
Posted: Thu Oct 13, 2011 1:51 pm
by Sergey Tkachenko
No, names are not changed.
But in Addict 4, TAddictSpell and TAddictSpell3 are synonyms. So it does not matter if TRVAddictSpell3 is inherited from TAddictSpell or TAddictSpell3.
Posted: Fri Oct 14, 2011 8:34 am
by waeberd
Sergey Tkachenko wrote:But in Addict 4, TAddictSpell and TAddictSpell3 are synonyms.
Are you sure? I don't think so...
from ad4live.pas
Code: Select all
TAddictSpell = class(TAddictSpellDialogs)
protected
FTimer :TTimer;
FControlList :TObjectList;
{.... tons of declarations }
public
{.... tons of declarations }
published
{.... tons of declarations }
end;
from ad3spell.pas
Code: Select all
(* This component is provided only for Addict 3 compatibility
and should not be used for new code going forward. Please use
the <link ad4Live.TAddictSpell, TAddictSpell> component as it
completely replaces the functionality available here. *)
TAddictSpell3 = class(TAddictSpellDialogs)
public
end;
So there is IMHO much more functionality in TAddictSpell.
Agree?
Thanks, Daniel[/code]
Posted: Fri Oct 14, 2011 3:41 pm
by Sergey Tkachenko
Well, it has methods and properties for live spelling. However, TRichView does not use Addict's live spelling feature, it uses its own event OnSpellingCheck instead.