While typing inside an UltraFormattedTextEditor, the previously inputted text moves around, as if to adjust its width. Is there something I can do to make it not move like this? I'm using the default font that comes when I throw the control onto a form.
Thanks.
I'm not how to get the behavior that you're describing; the only situation that comes to mind is if you have a horizontal alignment of Justify, which would try to spread the text out evenly across the line. Can you provide more information?
-Matt
Hi Matt,
I'll be glad to provide more context. I'm just creating a new Form and then adding a new UltraFormattedTextEditor. I'm not changing any of its properties. In the attached image, you can see how some of the j's are placed very closely together, but as I start typing some more, they start moving. They move to adjust to the right width and then they end up like the bottom image.
Thanks
Interesting, it does indeed work correctly now.. I thought I had tried that. Oh well, thanks a lot.
This is the result of GDI+ text rendering in DotNet. It's just the way DotNet controls draw text.You will see the same behavior if you set the Text proeprty of a Label control to the same text you are using here.
This does not happen with a normal MS TextBox control because the DotNet TextBox wraps the windows text box and therefore uses GDI and not GDI+.
The good news is that you can change this. Set the UltraFormattedTextEditor's TextRenderingMode to GDI and see if that helps.