Posted 25 September 2018, 7:06 pm EST
I have a textbox that CANNOT grow. It cannot grow because it is part of a government form.
That means I need to know at run time, what part of the string will run out of the text box, so I handle the rest of the string that does not fit. The width of the text box is in inches, not in pixels, so that can be challenging.
So big letters like the capital “M” will take up more while the small “i” takes up less. Also needs to be taken into account the font and size as well. There won’t be italic and bold texts.