second window resize dynamically
I have problem I print some informations line by line but i need to put them in secondary window not in main.
The problem is that i don't know how much informations i have to print sometimes it can be 3 or 5 lines bu at least 2 lines.
So I've created secondary window and included texts in this window.
What i have to do that window will be 2 lines high and If I will display more than 2 lines (eg. 4 lines) window will increase.
Now when I display more than 2 lines window cuts next lines.
PS. I can't put this informations to main window because main is used to another task.