Hello again
I have solved problem #1. I can now save and load correctly the parameters. The strange thing is that I have to set PersistensyMode = "wpUseINIFile" in the Object Inspector even though I'm using the registry! I set "wpUseRegistry" on FormCreate. If I set "wpUseRegistry" in the Object Inspector", the save and load fails! I don't see the logic here. Anyway, It's working now.
I also found something regarding to problem #2:
In WPSpell_OptForm, the TWPSpellOptions.chkIgnoreNumbersClick defines this lines of codes:
if chkCompound.Checked then
o := o + WPSPELLOPT_IGNORECOMPOUND;
if chkCompound.Checked then
o := o + WPSPELLOPT_IGNORECASE;
if chkCaptital.Checked then
o := o + WPSPELLOPT_IGNORECOMPOUND;
if chkIgnoreCAPS.Checked then
o := o + WPSPELLOPT_IGNOREALLCAPS;
if chkIgnoreNumbers.Checked then
o := o + WPSPELLOPT_IGNORENUMS;
if chkSpellAsYouGo.Checked then
o := o + WPSPELLOPT_SPELLASYOUGO;
if chkAutoCASE.Checked then
o := o + WPSPELLOPT_AUTOCORRECT_CAPS;
if chkAutocorrectAutoWords.Checked then
o := o + WPSPELLOPT_AUTOCORRECT_LIST;
SpellControler.OptionFlags := o;
This saves the options wrong. When I rewrote it to the following lines, the saving of options is ok:
if chkCompound.Checked then
o := o + WPSPELLOPT_IGNORECOMPOUND;
if chkCaptital.Checked then
o := o + WPSPELLOPT_IGNORECASE;
if chkIgnoreCAPS.Checked then
o := o + WPSPELLOPT_IGNOREALLCAPS;
if chkIgnoreNumbers.Checked then
o := o + WPSPELLOPT_IGNORENUMS;
if chkSpellAsYouGo.Checked then
o := o + WPSPELLOPT_SPELLASYOUGO;
if chkAutoCASE.Checked then
o := o + WPSPELLOPT_AUTOCORRECT_CAPS;
if chkAutocorrectAutoWords.Checked then
o := o + WPSPELLOPT_AUTOCORRECT_LIST;
SpellControler.OptionFlags := o;
Regards
Ingar H