[Gambas-user] label control

Steve simonlebon54 at yahoo.com
Thu Jun 16 18:15:48 CEST 2022


Il 15/06/22 00:26, Steve via User ha scritto:

I am attempting to populate a label control. The text on the control 
will vary. The size of the control does not. Is there a way to detect 
when the text Will overflow the control so that I can split the text up 
properly to display? This would be in the case where there is sufficient 
vertical room but not horizontal. Also the font size will vary.


The TextLabel has Autoresize and Wrap properties that, if i undestand, 
you should need.
Why can't you use them?

Regards
Gianluigi

I did not see a wrap option on the label command. And the auto resize is not going to do the job when only the contents are changed. Auto resize with fire when things are resized. This label control will be dynamically display information. Bruce had a beautiful solution I don't understand half of the programming he used but it works flawlessly.

⁣Get TypeApp for Android ​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220616/66aee6da/attachment.htm>


More information about the User mailing list