Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
O.P. RE: [?] Automatically Resize PlusWnds
But is there any way to determine the size of the text box contents (and easily)? Else when I change the size it won't be accurate. I think I might be able to resize the StaticControl to fit the contents and then find the height and add about 50 for the titlebar and bottom bar... Any idea how to do it?
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
O.P. RE: [?] Automatically Resize PlusWnds
You're right... I think it might be easier if I work out the maximum characters per line, work out the number of lines and the height of each line and then resize the window to that lol
Yeh, that would be the easiest way. However, you might want to look what is the widest character, because if I would type 5 underscores _____ it's lots wider than 5 dots .....