- Timestamp:
- May 19, 2015, 2:49:23 PM (10 years ago)
- Location:
- cprs/branches/HealthSevak-CPRS/CPRS-Lib/Hans SpellCheck/Demo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/HealthSevak-CPRS/CPRS-Lib/Hans SpellCheck/Demo/fHunSpell.dfm
r1715 r1718 16 16 OnActivate = FormActivate 17 17 OnClose = FormClose 18 OnCloseQuery = FormCloseQuery 18 19 OnCreate = FormCreate 19 20 PixelsPerInch = 96 … … 197 198 object RichEdit1: TRichEdit 198 199 Left = 3 199 Top = 57200 Top = 76 200 201 Width = 726 201 Height = 205202 Height = 186 202 203 Lines.Strings = ( 203 204 'Type orr Paste heree the text ' … … 228 229 OnClick = btnCloseClick 229 230 end 231 object cbIgnoreAllCaps: TCheckBox 232 Left = 131 233 Top = 54 234 Width = 178 235 Height = 17 236 Caption = 'Ignore words in &UpperCase' 237 TabOrder = 6 238 OnClick = cbIgnoreAllCapsClick 239 end 240 object cbIgnoreDigit: TCheckBox 241 Left = 339 242 Top = 53 243 Width = 166 244 Height = 17 245 Caption = 'Ignore words with &digits' 246 TabOrder = 7 247 OnClick = cbIgnoreDigitClick 248 end 230 249 object OpenDialog1: TOpenDialog 231 250 DefaultExt = '*.Dict' -
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.