Ignore:
Timestamp:
May 23, 2015, 9:39:28 AM (9 years ago)
Author:
healthsevak
Message:

Did few minor modifications/Additions related to restarting spell check, changing caption of Close button and adding a new button to re-start the spell check if required, and also removed the confirmation dialog/message while closing the dialog as suggested by Jim Bell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/HealthSevak-CPRS/CPRS-Chart/fHunSpell.pas

    r1719 r1723  
    6868    cbIgnoreAllCaps: TCheckBox;
    6969    cbIgnoreDigit: TCheckBox;
     70    btnRestat: TButton;
    7071    procedure FormCreate(Sender: TObject);
    7172    procedure btnIgnoreOnceClick(Sender: TObject);
     
    9899    procedure cbIgnoreDigitClick(Sender: TObject);
    99100    procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
     101    procedure btnRestatClick(Sender: TObject);
    100102  private
    101103    { Private declarations }
     
    249251begin
    250252   SpellCheck1.CorrectWithMyWord;
     253end;
     254
     255procedure TfrmHunSpell.btnRestatClick(Sender: TObject);
     256begin
     257  inherited;
     258  if SpellCheck1.SpellCheckState = ssChecking then
     259    SpellCheck1.ReStart
     260  else
     261    SpellCheck1.CheckSpelling;
    251262end;
    252263
     
    363374  if SpellCheck1.SpellCheckState = ssCompleted then
    364375  begin
    365     ShowMsg(TX_SPELL_COMPLETE, TShow508MessageIcon(1), smbOK) ;
     376   // ShowMsg(TX_SPELL_COMPLETE, TShow508MessageIcon(1), smbOK) ;
    366377    if Assigned(FSourceControl) then
    367378      FSourceControl.Text := RichEdit1.Text;
Note: See TracChangeset for help on using the changeset viewer.