Text too long for TextBox is cut off wrong when centered
ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support
Text too long for TextBox is cut off wrong when centered
11-15-2005, 11:27 AM
I have a data field bound to a TextBox, with the settings:
MultiLine = False
WordWrap = False
Alignment = Center
When the text is too long for the TextBox, the text cuts off whole words as if it was being wrapped, instead of cutting off mid word. The word that is left over is not centered peoperly, although it would be if the cutoff part was there. Since it is not, it looks like it is left aligned:
e.g. using "foobar bazqux"
___________
| foobar |
---------------
If the Alignment is set to Left, the cut off is fine (mid word):
e.g. using "foobar bazqux"
___________
| foobar bazq |
---------------
BTW...It would be nice if there was an option to have ellipses where the text is cut off so people would know something might be missing:
e.g. using "foobar bazqux"
___________
| foobar baz... |
---------------