A
Academia
As a simple example suppose I want to draw two columns of strings.
I know where each column starts and the widths.
So before I print a string I measure it and if it is longer than the column
width I remove a character at the end and measure it again. I repeat this
until the string is not longer than the desired width.
I'm drawing the strings on panel and wonder if there is a faster way.
Thanks
I know where each column starts and the widths.
So before I print a string I measure it and if it is longer than the column
width I remove a character at the end and measure it again. I repeat this
until the string is not longer than the desired width.
I'm drawing the strings on panel and wonder if there is a faster way.
Thanks