Beiträge von ingarh

    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

    Hi!

    Here are the settings I'm using and the procedures to set up the controller and the Options Dialog.

    procedure TIF_wpTekstbehandler.FormCreate(Sender: TObject);
    begin

    WPSpellController1 := TWPSpellController.Create(self);
    WPSpellController1.PersistencyMode := wpUseRegistry;
    WPSpellController1.Active := True;
    WPSpellController1.LoadSetup(false);
    WPSpellCheckInterface.Control := WPRichText1;
    WPSpellCheckInterface.UpdateSpellAsYouGo(true);
    WPRichText1.SpellCheckStrategie := wpspCheckInInitAndPaint;
    end;

    procedure TIF_wpTekstbehandler.FormDestroy(Sender: TObject);
    begin
    WPSpellController1.SaveSetup(false);
    WPSpellController1.Free;
    end;

    if WPSpellController1.Configure then
    begin
    if CheckBox1.Checked then
    begin
    WPRichText1.StartSpellCheck(wpStopSpellAsYouGo);
    WPRichText1.StartSpellCheck(wpStartSpellAsYouGo);
    end;
    end;

    object WPSpellController1: TWPSpellController
    Active = True
    SoundexScanTable.Strings = (
    'a:edä'
    'b:pvn'
    'c:sxv'
    'd:sf'
    'e:aiä'
    'f:dg'
    'g:jfh'
    'h:gj'
    'i:euo'
    'j:hk'
    'k:cjl'
    'l:mn'
    'm:n'
    'n:mb'
    'o:ipö'
    'p:bo'
    'q:ckw'
    'r:et'
    's:cadß'
    't:rpy'
    'u:yiü'
    'v:bc'
    'w:uqe'
    'x:kz'
    'y:tu'
    'z:xs')
    SuggestMode = []
    InitialDirectory = 'X:\Bin\Pedro'
    RegistryPath = 'Software\WPCubed\WPSpell'
    INIFilePath = 'wpspell.ini'
    PersistencyMode = wpUseRegistry
    OptionFlags = 0
    CurrentLanguage = 1044
    MemoryMode = wpspellUseMemory
    Left = 8
    Top = 240
    end

    Hi there!

    I'm using the WPSpell in my application. The problem is that when I configure the WPSpell, the changes doesn't save correctly.
    Problem #1:
    I've added a WPSpellController to my form. I'm using the registry to hold my values. When I use the WPSpellController.Configure-function, the TWPCustomSpellOptionForm opens up. Everything seems OK. I remove the USERDICT which I previously registred (manually) and close the TWPCustomSpellOptionForm. I check the registry and the USERDICT-reference is gone. Everything seems fine. But when I close the form which holds the WPSpellController and check the registry, the USERDICT-reference is back! Why?
    Saving values to ini-file seems ok, but I want to have the opportunity to use the registry.

    Problem #2:
    This seems to be a problem both when saving values to file and registry.
    Something odd is happening when saving values in the tab "Spellcheck Options" in TWPCustomSpellOptionForm. The boxes I check (and the options value in registry/file) changes when I close the TWPCustomSpellOptionForm and re-opens it. Why?

    I have tried to figure these problems out, but I can't seem to find any solution. Any suggestions?

    Regards
    Ingar H.

    Hello

    I am using the "USERDICT.DIC" where I have defined my own words.
    I wonder if I can use this "USERDICT.DIC" as some kind of autotext?
    I.e. I define that the two letters cc should be replaced with the word Cash & carry.
    (add a new line "=cc=cash & carry" in "USERDICT.DIC")
    My intention is that when the user spells "cc" and then push spacebar, the words "cash & carry" will replace the letters "cc". Is this possible? If yes, how to do it?

    Regards
    Ingar Helstrup