[Gambas-user] GridView RichText extra space character.
Charlie Ogier
charlie at cogier.com
Sun Nov 25 13:43:27 CET 2018
Hi David,
My test shows that this works correctly with QT4 & QT5 but not with GTK2
or GTK3.
Click to view example using QT5
<http://www.cogier.com/gambas/GUITest_093.jpg>
Charlie
On 25/11/2018 10:03, David Sanromá wrote:
> 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
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20181125/dde1f698/attachment.html>
More information about the User
mailing list