[Gambas-user] TextLabel malfunction?

vuott at tutanota.com vuott at tutanota.com
Sun Oct 22 23:09:09 CEST 2023


The TAG <Img src...> works regularly using QT.

Gianluigi is right. I too have always noticed that optimal results with HTML TAGs are obtained using QT.



22 ott 2023, 22:47 da bsteers4 at gmail.com:

> Luck maybe.
>
> According to the wiki <img> is not a valid richtext markup
>
> https://gambaswiki.org/wiki/doc/richtext
>
> BruceS
>
> On Sun, 22 Oct 2023 at 17:37, Gianluigi <> gradobag at gradobag.it> > wrote:
>
>> Hi,
>>  
>>  why if I use this code(*) does it only work with QT applications?
>>  (lamp.png is present in Data folder)
>>  
>>  Regards
>>  Gianluigi
>>  
>>  (*)
>>  Public Sub Form_Open()
>>  
>>     Dim hTextLabel As TextLabel
>>  
>>     With hTextLabel = New TextLabel(Me)
>>       .Alignment = Align.Center
>>       .H = 32
>>       .W = 32
>>       .X = 100
>>       .Y = 50
>>       .Text = "<img src=\"./lamp.png\">"
>>     End With
>>  
>>  End
>>  
>>  
>>  ----[ >> http://gambaswiki.org/wiki/doc/netiquette>>  ]----
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231022/a0450d8d/attachment.htm>


More information about the User mailing list