RichViewActions with Addict4

General TRichView support forum. Please post your questions here
Post Reply
gdenny
Posts: 28
Joined: Wed Jul 22, 2009 6:46 pm

RichViewActions with Addict4

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17560
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
gdenny
Posts: 28
Joined: Wed Jul 22, 2009 6:46 pm

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17560
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
waeberd
Posts: 8
Joined: Mon Sep 26, 2005 11:39 am

Post 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
Sergey Tkachenko
Site Admin
Posts: 17560
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
waeberd
Posts: 8
Joined: Mon Sep 26, 2005 11:39 am

Post 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]
Sergey Tkachenko
Site Admin
Posts: 17560
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply