Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Different bad words per control - RapidSpell WPF - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
TMulder
#1 Posted : Friday, June 17, 2011 12:10:36 PM
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?

Jim
#2 Posted : Friday, June 17, 2011 2:10:44 PM
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!


TMulder
#3 Posted : Friday, June 17, 2011 4:42:44 PM
Rank: Member

Groups: Registered

Joined: 1/4/2011
Posts: 42
That would be great!
Thanks Jim
Jim
#4 Posted : Friday, June 17, 2011 5:26:28 PM
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!


TMulder
#5 Posted : Monday, June 20, 2011 2:22:52 PM
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)'
Jim
#6 Posted : Monday, June 20, 2011 3:03:36 PM
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!


TMulder
#7 Posted : Monday, June 20, 2011 3:25:19 PM
Rank: Member

Groups: Registered

Joined: 1/4/2011
Posts: 42
That was exactly what it was. Thx!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.