Hi,
I'm using UltraFormattedTextEditor to display the mail content for order details that will be sent to the customer in a plain text Email. The aligning of text is done by simply inserting blanks. Although I'm using monospace fonts there are some inaccuracies in the aligning of the characters when they are displayed in UltraFormattedTextEditor as depicted in picture below:
I tried it with both the font 'Courier New' and 'Consolas' with different font sizes but the problem always appears. Of course I set the property 'UseAppStyling' to false. When I copy and paste the text from the control to a text editor the aligning is fine and also when I finally send the Email, open it in my mail client after receiving it looks fine. I tried the RichTextBox control from MS and that also showed it correctly but since I'm using UltraGridBagLayoutManager I cannot use this control. I've attached the text as copied out from UltraFormattedTextEditor so that you can examine this as well.
Is there any property to be set or another control to be recommended? Btw. I gave UltraTextEditor control a try but it seems to have same problems :-(
I copied and pasted the text from the file you attached here into an UltraFormattedTextEditor with it's font set to Courier New and I see the same problem. This appears to be a bug in the control.
It tried this with the inbox TextBox control and it works correctly.
Then I tried it with the UltraTextEditor control and it also works fine there. So this appears to be a bug in the UltraFormattedTextEditor.
I am going to forward this thread over to Infragistics Developer Support so they can check it out and get it corrected.
Hello,
I have tested your sample and logged it as a bug with our developers. The issue number is 66456.
Sincerely,TroyDeveloper Support Engineer
The issue was researched and found not to be a bug. The misalignment occurs because the UltraFormattedTextEditor control renders with GDI+, whereas MS TextBox renders with GDI.
The easiest way to correct the imprecise measurements of GDI+ are to set TextRenderingMode on the UltraFormattedTextEditor to GDI.
Was this problem ever fixed? I don't know if it's the same problem, but I also have a problem typing into an UltraFormattedTextEditor control with Arial font where as I type the last characters of the string appear squeezed and they expand to normal character spacing as I type more text.
Do you know which release would have this fixed?
Thank you
Thanks for the Info,
I've replaced UltraFormattedTextEditor with UltraTextEditor which is enough for my purposes.
Regards, Wolfgang