Allow label to change size upon wordwrap or newline.
Posted: Mon Feb 11, 2019 8:03 pm
Is there a way to tell a label to change it's size dynamically depending on how many lines of info it is displaying?
For example say I have the line:
"A taco appears before you."
It takes up about 25 pixels of height so right now my label is just high enough and just wide enough to display that specific text.
But if the text changes to:
"A taco appears before you and a llama dances the macarena."
Now the label is too small to display all the text but there is more information hiding that is not displayed. My question is this, Is there a way to have the label size change to show all the text and sort of 'vacuum wrap' itself vertically to meet the demands of the more space that is needed upon echoing to the label?
As always thank you for any tips or help you can provide.
For example say I have the line:
"A taco appears before you."
It takes up about 25 pixels of height so right now my label is just high enough and just wide enough to display that specific text.
But if the text changes to:
"A taco appears before you and a llama dances the macarena."
Now the label is too small to display all the text but there is more information hiding that is not displayed. My question is this, Is there a way to have the label size change to show all the text and sort of 'vacuum wrap' itself vertically to meet the demands of the more space that is needed upon echoing to the label?
As always thank you for any tips or help you can provide.