[Gambas-user] label multiline property

RICHARD WALKER richard.j.walker at ...247...
Thu Aug 2 23:20:13 CEST 2012


Hi Abbat,
I have just checked the two provided label types; TextLabel and Label
They behave slightly differently in providing multi-line text (which
is possible for both).

If you enter multi-line text using the Properties form in the IDE in
Label1.Text then the lines will appear as entered in the label on your
form.

If you enter multi-line text using the Properties form in the IDE in
TextLabel1.Text then the linefeeds are used as word breaking space and
the text is formatted with the words wrapping according to the width
and height of the label on your form.

If that isn't clear then just try it with your own label examples. And
don't forget you can quickly change a label from one type to the other
and instantly see the effect that will have on your form layout. Just
select the label in the form design view and right-click to get the
context menu where the 3rd option is "Change into...".

Richard




More information about the User mailing list