Current filter:
                                You should refresh the page.
                                0
                                  • Hi, I was trying to implement the Spell Checker for custom components and I found an interesting behavior. I created two simple custom controls that inherit from TextEdit and MemoEdit (Dev Express' controls). There is no implementation inside of both controls (for sake of simplicity for the demo).
                                    I then placed them side by side with Dev Express components, and used parts of the code from your own "XtraSpellChecker Features Demo (C# code)". When I ran the sample app, the controls behave differently.

                                    Situation 1:
                                    1. Click on all for controls, and you will notice that the DE's controls will get the red wave underneath them, however the custom controls won't. I even called the method SpellCheckTextControllersManager.Default.RegisterClass to register the custom controls, however still didn't work.

                                    Situation 2:
                                    1. When you right-click on the DE's controls, and click on "Check Spelling" you will notice that it will call the Spelling screen right away. The same is not true with the custom controls. When you perform the same actions with the custom controls, you'll notice that it first sets the red waves underneath it (after the first click), and then if you click again on the "Check Spelling" menu, then you will get the actual Spelling screen.

                                    Please advise on what I am missing.

                                    Thanks,
                                    Rafael

                                SpellChecker_Sample.zip
                                0

                                Hi Rafael,

                                Thank you for providing the source code.

                                Please note that you should call the SpellCheckTextControllersManager.Default.RegisterClass method before call the InitializeComponent method. Here is some sample code:

                                	
                                [C#]
                                ... public Form1() { // This register the Custom controls to be able to be checked by Spell Checker RegisterSpellCheckTypes(); InitializeComponent(); Shown += new EventHandler(Form1_Shown); } ...
                                Hope this helps.

                                Thanks,
                                Elliot

                                0

                                Elliot,

                                Thanks for the quick reply, you are right, by placing that code before the InitializeComponent, it worked fine. However the red wave line is still behaving in an strange way. Let me give you an example.

                                1. Launch the Dev Express Demo Center.
                                2. Click on XtraSpellChecker.
                                3. Click on Launch Demo.
                                4. Click on the "Multiple Editors (updated)" demo.
                                5. Click on the "CheckAsYouType Mode" check box.
                                6. Click on the "About" Memo Edit. (Notice that you get a red wave on the psyhology, Univercity and Internationa words.
                                7. Hit F7 to launch the Spell Checker screen.
                                8. Hit Ignore for every word that shows up (should be 5 times).
                                9. Click Ok on the spelling complete dialog (Notice the focus remains on the About MemoEdit and the last word is highlighted).
                                10. Type something bogus after the end of the phrase, ie: "teeestiing theee speeel chekerr" (Notice you didn't get the red wave. I would expect these new words to have it).
                                11. Click on the Address field, and then back to the About, and then you see the red wave on the new words, as well as on the old ones.

                                I hope this helps,
                                Rafael

                                0

                                Hi Rafael,

                                I believe that I understand your issue completely. However, I'm unable to reproduce the problem you described. I've created and attached a screencast, illustrating my actions. Perhaps, I've missed something. If so, please let me know. Please note that I've used the 9.3.4 version of the XtraSpellChecker control.

                                Thanks,
                                Elliot

                                Q260704.swf
                                0

                                Elliot, thanks for the screencast. On your example you used the mouse to click on the "Check Spelling", as opposed to use the "F7" key, like I described. It does make a difference, because by clicking on the actual button, you set the current focused control to the button, and then when you click on the "About" memo field again, it will recheck the control, and therefore everything works well.
                                If you hit F7, notice the "About" memo edit still has the current focus, when the spelling is completed.
                                Please let me know if you are able to recreate it.
                                Thanks,
                                Rafael

                                0

                                Hi ,

                                Thank you for the explanation.

                                I was able to reproduce your at our end. This is a bug in the XtraSpellChecker control. So, I've converted this issue into a bug report, and we will do our best to fix it as soon as we can.

                                Thanks,
                                Elliot

                                0

                                Hi Rafael,

                                I've fixed this issue in XtraSpellChecker 10.1.5 (the next update will contain this issue fix). Is it possible for you to use this Suite version or you want us to include the fix in the 9.3 branch also?

                                Thanks,
                                Plato

                                0

                                Plato,

                                Thank you for fixing the issue. Could you also include it on 9.3? That's the one we are using as of now.

                                Thanks,
                                Rafael

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.