Hello,
I have a large application which needs to update a UltraFormattedTextEditor programmatically. I have a small test application which works correctly but when I try the same thing in the large app. it does not update the editor (I am coloring the text). Is their anything which can interfere with the updating of the editor?
Some more info I can change block elements and the selected text is surrounded by an empty span tag but when ApplyStyle is called the span tag does not get updated.
Thanks,
Blair
Blair,
I can't think of anything offhand which would prevent the updates from being applied unless somewhere you've suspended painting/layout logic, especially if the exact same logic works in a smaller application but doesn't work in a larger one. Could you provide more information as to what you're doing?
-Matt
I seem to have tracked the issue down to the text which I am trying to color in the larger application. It has embedded CrLFs which are not converting to <br/> well. Also the text contains some HTML escaped text i.e. < and > which may also be part of the problem.
Also I have confirmed that my selected text is being selected; just when I call ApplyStyle the new style is not being applied to the span tag.
blair
Solved the problem. It turns out that the large application sets the UltraFormattedTextEditor to Readonly; which, does not allow new styles to be applied.