- Timestamp:
- May 19, 2015, 2:49:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/HealthSevak-CPRS/CPRS-Lib/Hans SpellCheck/Demo/fHunSpell.pas
r1715 r1718 62 62 btnAbort: TButton; 63 63 btnUndo: TButton; 64 cbIgnoreAllCaps: TCheckBox; 65 cbIgnoreDigit: TCheckBox; 64 66 procedure FormCreate(Sender: TObject); 65 67 procedure btnIgnoreOnceClick(Sender: TObject); … … 88 90 procedure lblDictionariesURLClick(Sender: TObject); 89 91 procedure lstSuggestionsDblClick(Sender: TObject); 92 procedure cbIgnoreAllCapsClick(Sender: TObject); 93 procedure cbIgnoreDigitClick(Sender: TObject); 94 procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); 90 95 private 91 96 { Private declarations } … … 296 301 end; 297 302 303 procedure TfrmHunSpell.cbIgnoreAllCapsClick(Sender: TObject); 304 begin 305 if SpellCheck1.IgnoreAllCaps <> cbIgnoreAllCaps.Checked then 306 SpellCheck1.IgnoreAllCaps := cbIgnoreAllCaps.Checked; 307 end; 308 309 procedure TfrmHunSpell.cbIgnoreDigitClick(Sender: TObject); 310 begin 311 if SpellCheck1.IgnoreWordWithDigits <> cbIgnoreDigit.Checked then 312 SpellCheck1.IgnoreWordWithDigits := cbIgnoreDigit.Checked; 313 end; 314 298 315 procedure TfrmHunSpell.edtDictionaryEnter(Sender: TObject); 299 316 begin … … 308 325 NoEngineOpted := True; 309 326 end; 327 328 if cbIgnoreAllCaps.Checked <> SpellCheck1.IgnoreAllCaps then 329 cbIgnoreAllCaps.Checked := SpellCheck1.IgnoreAllCaps; 330 331 if cbIgnoreDigit.Checked <> SpellCheck1.IgnoreWordWithDigits then 332 cbIgnoreDigit.Checked := SpellCheck1.IgnoreWordWithDigits; 310 333 end; 311 334 … … 320 343 else 321 344 ShowMessage(TX_SPELL_CANCELLED) ; } 345 end; 346 347 procedure TfrmHunSpell.FormCloseQuery(Sender: TObject; var CanClose: Boolean); 348 begin 349 CanClose := (SpellCheck1.SpellCheckState <> ssChecking) 350 or (SpellCheck1.AbortSpellCheck(True)); 351 if CanClose then 352 ModalResult := mrCancel; 322 353 end; 323 354
Note:
See TracChangeset
for help on using the changeset viewer.