I am seeing some odd behaviour trying to select a word in the UltraFormattedTextEditor. I can find the start and the length of the word using PerformAction(..WordLeft) and then walk to the first space. But when the space is part of multiple spaces represented with &edsp; I cannot then set the Selection Start. When the selection is badly set, using ApplyStyle then hangs the application.
I've attached a small sample that demonstrates the odd behaviour.
Thanks,
Wendy
Hello Wendy,
I tested your sample with version 10.3.1000 of our Net Advantage controls and I might be missing something because I do not see any messages or crashes of the application.
Please take a look at the attached video and let me know if I am missing something.
Hello Boris,
Thanks for the video. Would you please try the same sequence of actions in the last line of text at the bottom of the editor rather than the text in the instructions at the top. The error appears to be related to having multiple spaces in the line. The top lines of text do not have muliptle spaces and work correctly.
Would you modify the sample I already sent and on the Form, add a button that calls the line
this.uFTEditor1.EditInfo.ClearStyleAttributes(new string[] { "color" } );
Then first use the test button to apply the style to any word, then select some text including this colored text and try to clear the style. All remaining text disappears. Perhaps I am not applying the styles correctly?
(Your video was really helpful to see the behaviour. What tool do you use to capture the video?)
Thanks for the assistance,
calls
the
I am still not sure what the issue is here. Please take a look at what I tested(from what I understood).
I am using CamStudio and then archiving the video file with 7zip. Please provide a video of the steps if mine are wrong.
The errors that are occurring are somewhat random. There are many sequences of actions that work and a few sequences of actions that don't. I can no longer find the sequence that clears all remaining text, but I expect it's related to the other failures. I have tried to explain the steps to reproduce the failure more clearly. Unfortunately, I do not have a video tool. It is certainly very helpful.
Please see the revised sample attached.
Thanks
Attached video of behaviour with my setup.
I've upgraded to version 12.1 and that has resolved the errors.
thanks,
Did you try the latest service release available? Did it fix the issue? Please let me know because I am still not able to reproduce it, even though I am definitely seeing something in the provided video by you.
Hi Wendy,
I ran your sample and I am also unable to reproduce the issues I can see in the video.
My guess is that this is a bug in the version of NetAdvantage you are using. There have been quite a number of bugs in recent years involving the use of multiple consecutive spaces that have been fixed.
How to get the latest service release - Infragistics Community