A
Allen
I've got a control that you can resize the contents of one of the text
fields inside it. When the contents are resized to smaller than the
text, I remove some of the end of the text and substitute ... at the
end.
This is where the wierdness sets in. Any time I remove or change some
letters at the END of the text and draw, the spacing throughout the
text string changes!!! So when I resize it in and out, the whole line
looks like its expanding and contracting.
I am using Graphics.DrawString with mostly default values. My font is
Sans Serif 8.25. I've checked the microsoft .net listview and it
doesn't show this behavior with this same font so I'm trying to figure
out what they are doing that I am not!
Why is my text line expanding and contracting as it's changed near the
end?
fields inside it. When the contents are resized to smaller than the
text, I remove some of the end of the text and substitute ... at the
end.
This is where the wierdness sets in. Any time I remove or change some
letters at the END of the text and draw, the spacing throughout the
text string changes!!! So when I resize it in and out, the whole line
looks like its expanding and contracting.
I am using Graphics.DrawString with mostly default values. My font is
Sans Serif 8.25. I've checked the microsoft .net listview and it
doesn't show this behavior with this same font so I'm trying to figure
out what they are doing that I am not!
Why is my text line expanding and contracting as it's changed near the
end?