[Gambas-user] TextLabel Formatting Code

Werner Staudacher gambas-user at lists.sourceforge.net
Sat Dec 31 10:43:09 CET 2005


Werner Staudacher schrieb:

> A Person schrieb:
>
>> Good Day All and Season's Greetings . . .
>>
>> I am having extreme difficulty formatting a textlabel.
>> Nothing that I try seems to work.
>>
>> . . .
>> TextLabel1.Caption = "<font color=red>Stopped!</font>" & Space$(5) &
>>         "<font color=black>The new debugged code is:     </font>"
>> . . .
>>
>> 1.  The above Space$(5) has no effect.
>> 2.  The spaces after _is:_ have no effect.
>> 3.  The gb.NewLine character has no apparent effect.
>> 4.  Chr$(13) and Chr$(10) have no effect.
>> 5.  I deciphered <b> might mean something. It doesn't work.
>>
>> I am (1) trying to include spaces in the text and (2) trying to end a 
>> line and start another.
>>
>> Any help?
>>
>> Paul
>>
>>
> Hi Paul
>
> You are using html, and html converts many spaces to one. Use   
> instead, or better format tags with css-styles.
> But not shure how a textlabel from gambas works with html-code.
>
> Regards, Staudi
>
Sorry, i forgot that in html ...
a new line is <br> or enclose paragraphs with <p> your textblock...</p>
and <b> is bold </b>

staudi




More information about the User mailing list