[Gambas-user] Word Wrap in GridView

Benoît Minisini gambas at ...1...
Fri Sep 11 13:29:05 CEST 2009


> Angel Romero Astorga schrieb:
>  > Hi all
>  >
>  > My problem is similar. When I used gb.gui, GridView wrap the text,
> 
> but when I use gb.qt, it don't do it. ¿How can I wrap the text in a
> cell? thanks
> 
>  > Rolf, I don't know how to help you, sorry
> 
> I'm using the whole thing under KDE only, and I don't know why it wraps
> the texts (though I don't mind it doing so :-) ). Is there a property to
> switch this on or off?
> 
> Here is an idea for the developers (bonjour Benoit...) which came to me
> the other day:
> 
> IF there is any value about word-wrap that can be read from the original
> C++ GridView from the libraries, it might suffice to give just an
> integer about the number of text lines in a grid line. If it's > 1, the
> program could decide whether to stretch this line's height to make the
> whole text visible. A single line's height can be read easily anyway.
> 
> If the programmer doesn't want to decide for each line, there could be a
> property as well to be set with TRUE to make the GridView care for it by
> itself.
> 
> Just my 2 cents...
> 
> 
> Regards
> 
> Rolf
> 

In Gambas 3, I added a WordWrap property to the cell virtual object and the 
Data property, both in gb.qt4 and gb.gtk. By default, this property is false, 
and text is not wrapped.

In Gambas 2, cells won't be never wrapped.

Regards,

-- 
Benoît Minisini




More information about the User mailing list