[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Addict 2->3 conv. Q



> with version 2 I had a menu in my application that showed all
> available dictionaries and those loaded were checked. To implement
> this I accessed
>
> Tmain(AddictSpell1.Config.Main.Items[i]).title
> Tmain(AddictSpell1.Config.Main.Items[i]).loaded
>
> With V3 it seems that AddictSpell1.Configuration.MainDictionaries
> only holds the active dictionaries. How do I get a list of known
> dictionaries (either all known or all know that are inactive).

All known dictionaries are available through the ConfigAvailableMain
property.

> Did I make myself clear? Well, I simply need the information visible in
> the setup dialog. The name and the filename of all dicts and if it is
> active or not.

Whether or not it is active can be determined by seeing if the dictionary is
in the Configuration.MainDictionaries property.

> Then, I'd appreciate a pointer on how to programmatically
> load/unload a dictionary. With v2 I did this by changing
> Tmain(AddictSpell1.Config.Main.Items[i]).loaded then saving and
> reloading the configuration, but maybe there is a more elegant way
> now.

Simply add or remove the dictionary from the Configuration.MainDictionaries
property.


Best Wishes,

Michael Novak
Addictive Software
address@hidden
http://www.addictivesoftware.com





Please visit Addict Home Site.