|
Rank: Newbie
Groups: Registered
Joined: 11/22/2018 Posts: 2
|
I use RapidSpell Desktop v5 in a C# Winforms application. I have noticed that the text entry performance decreases as the size (area) of the textbox increases. The larger the textbox (width or height) the greater the lag, regardless of how much text is in the box.
When the textbox fills the screen the text lags by several seconds. When the textbox is small, there is no lag.
Is there something I can do to resolve this?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
If you have a large textbox full of errors, I could see that getting quite slow. Every underline contributes to the workload, so if you are checking jibberish then it is going to slow down. With a full screen RichTextBox filled with text that has about 20 errors, it is slower on my machine, but the lag is less than a second per key stroke. Is there anything that you can do about it? You could try setting RapidSpellAsYouType.SetRepaintTimer(500); this will make it so that the underlines are only painted after the user pauses for 500ms. Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Newbie
Groups: Registered
Joined: 11/22/2018 Posts: 2
|
Thanks for the reply Jim. As I stated in the original post, the amount of text does not seem to matter. Your suggestion did correct the performance issue, however, for some reason the red underlining does not resume if I end a word with an alphanumeric character. The previously underlined text will remain underlined but the text entered since then will not be until I end with a non-alphanumeric character, such as a space or a period.
I had developed a workaround by temporarily removing the textbox from the Rapid Spell instance and adding it after 500 ms of inactivity. This approach did not suffer from the strange bug described above.
Thanks again.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Yes, you did say about the amount of text but I meant the amount of errors, difference being every underline demands position calculations... Anyway, there is a user property (in options, through the dialog control) for ignoring words with digits, it could be related to that. I will have to check it out. -your feedback is helpful to other users, thank you!
|
|