[Gambas-user] GridView RichText extra space character.

David Sanromá dsanroma at gmail.com
Sun Nov 25 11:03:18 CET 2018


Hello everyone,


I have noticed a strange behavior when I tried to use the GridView's 
RichText property. When I place two <font> tags with color definition 
next to each other, an extra space shows up from nowhere. Let me show 
you my test:


         GridView1[0, 0].RichText = "<font>Hello</font><font>World</font>"

             HelloWorld   ---- Perfect!

         GridView1[1, 0].RichText = "<font 
color='white'>Hello</font><font>World</font>"

             HelloWord    --- Hello in white color: Perfect!

         GridView1[2, 0].RichText = "<font 
color='white'>Hello</font><font color='yellow'>World</font>"

             Hello World   --- Colors great, but extra space between the 
2 words. Not perfect  :(


I was wondering where that extra space comes from. Is it a Gambas thing 
or a QT thing? Is there a way for that space not to show up ?


TIA,

David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181125/f66c6686/attachment.html>


More information about the User mailing list