I have form1 set to autosize. I want memo1 to resize (height only) according to how many lines are in it without having to use ssvertical.
In other words, when memo1 loads up (from text in a text file), if it has more that what will fit on the screen, I need to resize it accordingly so when I print form1, it will print all text on form and memo1.
In my code, I hide the buttons on the form before it prints then switch them back on.
I've tried // memo1.height := memo1.lines.count * 20;
but that doesn't work quite right. It does resize it but not right. My font is Tahoma 10 regular.