wxGrid cell wrap‏

Hi,

I would like to know if it is possible to have the text in a cell of a
wxGrid wrapped instead of just going out of sight, in case it doesn't
fit in the cell.
Is there some sort of wx.WORD_WRAP or wx.MULTI_LINE flag for this? I
have looked in the wxWidgets docs and demo's but cannot find anything
regarding this.

Thanks in advance.

Frans

You can use the GridCellAutoWrapStringRenderer for the cells that you want to be word-wrapped.

···

On 1/14/10 2:52 PM, AirFrans wrote:

Hi,

I would like to know if it is possible to have the text in a cell of a
wxGrid wrapped instead of just going out of sight, in case it doesn't
fit in the cell.
Is there some sort of wx.WORD_WRAP or wx.MULTI_LINE flag for this? I
have looked in the wxWidgets docs and demo's but cannot find anything
regarding this.

--
Robin Dunn
Software Craftsman

Hi Robin,

Thanks! This works.

Frans

···

On Jan 15, 1:33 am, Robin Dunn <ro...@alldunn.com> wrote:

On 1/14/10 2:52 PM, AirFrans wrote:

> Hi,

> I would like to know if it is possible to have the text in a cell of a
> wxGrid wrapped instead of just going out of sight, in case it doesn't
> fit in the cell.
> Is there some sort of wx.WORD_WRAP or wx.MULTI_LINE flag for this? I
> have looked in the wxWidgets docs and demo's but cannot find anything
> regarding this.

You can use the GridCellAutoWrapStringRenderer for the cells that you
want to be word-wrapped.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org