[Gambas-user] GridView Cell Height with WordWrap

Rolf-Werner Eilert rwe-sse at osnanet.de
Thu Feb 25 13:33:18 CET 2021


Am 25.02.21 um 13:13 schrieb T Lee Davidson:
> On 2/25/21 7:06 AM, Rolf-Werner Eilert wrote:
>> Am 25.02.21 um 12:54 schrieb T Lee Davidson:
>>> On 2/25/21 2:42 AM, Rolf-Werner Eilert wrote:
>>>> You are right, guys, I tried just that. The reason for which it 
>>>> fails 
>>>> is, there is no WordWrap in the version I use. I saw this only now.
>>>>
>>>> This is Gambas 3.15.2 (isn't that the latest version?) running under 
>>>> Ubuntu Mate 18, and the project uses gb.qt4 + gb.qt4.ext. The reason 
>>>> might be that in the past I needed one or two of the special things 
>>>> that come with qt4.ext.
>>>
>>> I am using v3.15.2, and there is Wordwrap.
>>>
>>> Also, gb.qt5.ext is available in Project > Properties > Components.
>>>
>>>
>>
>> It's a strange world sometimes, isn't it Lee? :))
> 
> Well, yes, it is.
> 
> But, more to the point, Wordwrap was available way back in gb.qt4. It is 
> not a new feature. If you get an error when using it, then perhaps 
> something in your installation is corrupted.
> 
> Also, is there a reason you cannot simply install gb.qt5.ext from your 
> repo?
> 
> 

There is a .Data.WordWrap, and it works, but the Height of the cell 
(row) doesn't adapt automagically, and it is nearly impossible to find 
out the necessary row height. When I use -1, it ends in an overflow. 
With column width, however, this trick has worked for many years.

And yes, I guess I could install gb.qt5.ext from the repo, as I 
installed Gambas from the Team repo. I will have to try later. Do you 
think the package is gb.qt5.ext?

Regards
Rolf


More information about the User mailing list