[Gambas-devel] Multiline labels?

Benoit Minisini gambas at ...1...
Wed Aug 3 17:19:18 CEST 2005


On Wednesday 03 August 2005 00:30, Daniel Campos wrote:
> Hi Benoit:
>
> I remember you told me that only TextLabel supports multiline text.
> However try this with gambas1-.9.14 and gb.qt:
>
> Label1.Text="line 1\nline 2"
>
> There are two lines!
>
> May be I didn't understood it right?
>

I didn't use the good english words :-)

The Label doesn't automatically wrap lines. But of course if you put '\n', it 
displays a new line. But it could not.

The rule is: for a single line, Label, and for displaying multi line rich 
text, TextLabel.

Is there a problem with GTK+ about that ?

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list