If I add an UltraSpellChecker to a RichTextBox, whenever I type into that box, the text flickers horribly. Any underline spelling errors also flicker. Is there any way to prevent this? I'm using 10.3.2067.
Hello jcwild,
I try to reproduce your scenarion and issue in a small sample, but without success. Could you please take a look at the attached sample and if you think that I didn`t reproduce your scenario, please feel free to modify this sample to reproduce your issue and revert it back to me. I`ll be glad to research it for you.
Regard
Sorry, I should have been more specific. If you change the SpellChecker Mode to AsYouType you should see the flickering. I verified this in your sample. It might be more obvious if you increase the font size.For some reason, the flickering seems to be worst on the top row.
What is also very odd about the editor, is that it reports the character position in a strange way if you have carriage returns in the text. So say you have the following text: ONE TWOTHREE FOURFIVE SIXIf you put your cursor after the FOUR, EditInfo.SelectionStart will return 18. However, that is actually position 19. If you put your cursor after the SIX, EditInfo.SelectionStart will return 27, however that is actually position 29.In other words, it reports the position of the character as though CrLf was a single character. But the Text string returned by the control has the CrLf characters as 2 characters in length.This becomes a problem when you use SelectionStart to identify where in Text you should be looking, and it is actually offset by a certain number of characters.
Hello Campbell ,
I try to reproduce your issue, but without success. Could you please tell me what is your version (Are you using version 10.3 or your trial version 12.2) Are you able to upload small sample that reproduce your issue.
Thanks and Regards
Both problems occur in both versions. I have attached a sample to demonstrate both issues.
The SelectionStart problem is a real pain. All I want to be able to do is know the location within the text that the cursor is.
I can do this if WordWrap is False using the following:
EditInfo.SelectionStart + Math.Max(EditInfo.GetLineNumber(EditInfo.SelectionStart) - 1, 0)
However, if I have WordWrap turned on then I need to know how many carriage returns there are before the cursor. The quickest method I found was to create a second, hidden FormattedTextEditor with WordWrap false, copy the text over, and run the above on it, but what a waste of resources...
Secondly, the spell check underlines on the FormattedTextEditor appear in a different place (higher up) than the RichTextBox (see attached image). Is there any way I can change this so the underline is actually under the text, rather than covering up the bottom of the text? As it is currently, it's more of a strikethrough than an underline.
I get the feeling this control is not heavily used, as others would have found these problems.
Thanks,Campbell
And another thing. Is there something special I need to do to get Drag/Drop working on the FormattedTextEditor? I have set AllowDrop = True, and in DragEnter I have set e.Effect = DragDropEffects.Copy, yet I am still getting the NoEntry cursor appearing. This worked fine in the RichTextBox.EDIT - Turns out I can get this to work by changing e.Effect = DragDropEffects.Move. Any idea why it doesn't work with Copy?