WPCubed Product Support

WPSpell and WPTools5

I have just started using WPSpell and have a couple of questions

  1. If I click to start Spell Checking at the end of a document, I get a blank message. What does this mean and how can i go to the start of the document so it starts checking from the start?
  2. Merge Fields are being checking - how can I stop this?

I tried looking up the spell help file (WPSPELL.HLP) but didn't explain what each property is meant to do. I also looked on the website but found nothing. Are there any other help files that I can download?

#1 ♥ 0
7.9k Views 2 users read 2 min
support

Hi,

  1. If I click to start Spell Checking at the end of a document, I get a blank message. What does this mean and how can i go to the start of the document so it starts checking from the start?

Please open the file WPSpell_StdForm.pas and update this method:

[code]function TWPSpellForm.SpellCheck(AControl: TControl): Boolean;
var s : string;
begin
Result := NextWord;
if not Result then
begin
s := WPSpellLoadStr(tlblCompleteMesg);
if (MessageBox(Handle, PChar(s), '', MB_RETRYCANCEL)=ID_RETRY)
and (SpellInterface<nil>> 2. Merge Fields are being checking - how can I stop this?

This feature wiil be added to next release.

Julian Ziersch

#2 ♥ 0

Thanks Julian,

Is there anyway to skip Merge Fields from being included in the spell check?

Luke.

#3 ♥ 0
support

Hi,

Sorry,. forgot the quit. I meant "This feature wiil be added to next release. " according to the skip of fields..

Juliuan

#4 ♥ 0

Thanks Juliuan,

I think a bit of the changes to the code were missing? How should the current function look?

function TWPSpellForm.SpellCheck(AControl: TControl): Boolean;
var s : string;
begin
if NextWord then begin
Show;
edtReplace.SetFocus;
Result := TRUE;
end else begin
WPSpellLoadStr(tlblCompleteMesg);
MessageBox(Handle, PChar(s), '', 0);
Result := FALSE;
end;
end;

Cheers, Luke.

#5 ♥ 0

Hi Julian, any chance of clearing up that code snippet?

Thanks, Luke.

#7 ♥ 0
support

Sorry, I forgot to check "Disable HTML"

function TWPSpellForm.SpellCheck(AControl: TControl): Boolean;
var s : string;
begin
   Result := NextWord;
   if not Result then
   begin
      s := WPSpellLoadStr(tlblCompleteMesg);
      if (MessageBox(Handle, PChar(s), '', MB_RETRYCANCEL)=ID_RETRY)
         and (SpellInterface<>nil) then
         begin
            SpellInterface.ToStart;
            Result := NextWord;
         end;
   end;
   if Result then
   begin
     Show;
     edtReplace.SetFocus;
   end;
end;
#8 ♥ 0
This category is archived. No new posts are possible.