[Gambas-user] GridView RichText extra space character.

David Sanromá dsanroma at gmail.com
Sun Nov 25 16:02:44 CET 2018


Hello,


Thanks for the heads up... I never tried "forcing" one library over the 
other.  ;)


In the Project Properties | Environment I tried setting the variable 
GB_GUI to gb.qt4 and things worked like Charlie mentioned., like one 
would expect ;)

Thanks a bunch...


My next question would be, is there any advantages or disadvantages to 
set the variable to gb.qt4 or gb.qt5 or any GTK setting to work with 
Gambas ?


Do I miss anything by always setting the GB_GUI to gb.qt4 or gb.qt5 ?


Which one is better for Gambas gb.qt4 or gb.qt5 ?


TIA,

David



El 25/11/18 a las 13:43, Charlie Ogier escribió:
> 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 byhttps://www.hostsharing.net  ]----
>
>
> ----[ 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/4ac27bcc/attachment.html>


More information about the User mailing list