Spell check not working

  • Hello,

    Recently we purchased your WP Tools 7 Pro for Delphi 2007.
    We have problems when implementing SpellCheck on TDBWPRichText control.
    In fact, we can't do spelling at all using standard toolbar option (We need German and English spelling control).
    Could you explain what is it about and whether it needs additional installation packages?
    Any simple example would be of great use.

    Thanks in advance

    • Offizieller Beitrag

    The spellcheck needs an interface which is created at runtime. Just a few lines of code.

    // The controller is used to store the options of the spellchecker
    WPSpellController := TWPSpellController.Create(Self);
    WPSpellController.PersistencyMode := wpUseRegistry; // store values in registry
    WPSpellController.Loaded; //<-- here we load the dictionary!
    WPSpellController.Active := TRUE; //<-- the link uses this instance
    WPSpellCheckInterface.Control := WPRichText1;
    WPSpellCheckInterface.DoSpellAsYouGo;
    Checkbox_SpellAsYouGo.Checked := WPSpellCheckInterface.SpellAsYouGoIsActive;