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 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.
Hello Boris,
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
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.
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.