uilabel – fit width to text
Hi,
I have some uilabel objectss in my appdesigner app which are created programmatically while the app is running.
Now I would like to change the size of the uilabel in a way that it fits the text and does not cut it off. How can I do that?
Googling gave me only some information on how to do that with uicontrol objects via the ‘Extent’ property. Unfortunately, uilabel objects do not have such a property and uicontrols don’t work with appdesigner.
I would also be interested in how to fit the label size when the fontsize changes. Maybe that could be done using the same means.Hi,
I have some uilabel objectss in my appdesigner app which are created programmatically while the app is running.
Now I would like to change the size of the uilabel in a way that it fits the text and does not cut it off. How can I do that?
Googling gave me only some information on how to do that with uicontrol objects via the ‘Extent’ property. Unfortunately, uilabel objects do not have such a property and uicontrols don’t work with appdesigner.
I would also be interested in how to fit the label size when the fontsize changes. Maybe that could be done using the same means. Hi,
I have some uilabel objectss in my appdesigner app which are created programmatically while the app is running.
Now I would like to change the size of the uilabel in a way that it fits the text and does not cut it off. How can I do that?
Googling gave me only some information on how to do that with uicontrol objects via the ‘Extent’ property. Unfortunately, uilabel objects do not have such a property and uicontrols don’t work with appdesigner.
I would also be interested in how to fit the label size when the fontsize changes. Maybe that could be done using the same means. appdesigner, uilabel MATLAB Answers — New Questions