|
Rank: Member
Groups: Registered
Joined: 1/4/2011 Posts: 42
|
Hi,
Is there a way to customize Keyoti spell checker to change the bad word sets per text box control? I would only add a few words per textbox control that are bad words for that specific textbox.
I'm inheriting from Keyoti.RapidSpell.Wpf.RapidSpellChecker and implemented:
protected override bool LookUpMainDictionary(string query) { if (CustomUserDictionary.IsFlaggedWord(query) != null) return false;
return base.LookUpMainDictionary(query); }
How can I make it so that I can find the Textbox that is currently being spell checked?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
I can't see anyway to do it, funnily enough - would you like a new build that provides some way? I think it would have to be a property in RapidSpellAsYouType that returns the textbox being worked on... Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 1/4/2011 Posts: 42
|
That would be great! Thanks Jim
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Here you go, just use RapidSpellAsYouType.CurrentTextBox - it's cast as object because it could be a few different types depending on what you added... http://keyoti.com/Upload...SWPF-CurrentTextBox.zip
Best Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 1/4/2011 Posts: 42
|
Thanks Jim. Just what was needed. However, it seems there is another dll that I need. When compiling it gives the following error:
LC : error LC0000: 'Could not load file or assembly 'Keyoti4.RapidSpell.WPF' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Is it this: http://www.gotknowhow.co...one-of-its-dependencies
2.Then right-click on the file, and select Properties. 3.In the General tab, go down to the Security section and next to "This file came from another computer and might be blocked to help protect this computer." and click the Unblock button. 4.Then click OK.
ohhhhhhh Windows...! Jim -your feedback is helpful to other users, thank you!Evaluation Downloads - http://keyoti.com/products-your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 1/4/2011 Posts: 42
|
That was exactly what it was. Thx!
|
|