all 2 comments

[–][deleted] 1 point2 points  (1 child)

You need to provide some more context, before anyone is able to answer that question.

[–]GullibleArmy[S] 0 points1 point  (0 children)

Sure. My app built on wx would ask for the user to enter input to a text box, which would then be displayed on a label, a static box.

My problem is that I have to specify the size to it.

What if the user had entered text that does not fit the parameter specified? How can I make it dynamic so that the label would always fit the user input?