wx.Grid and using a multiline textctrl

I am looking for a way to use a multiline textctrl for a grid column. I figured most of it out looking at the grid demo and scanning the list archive, but I can't see how I could autosize the hight of the row based on the text within the textctrl when rendering.

Does anyone have some tips on how to go about this.

Werner

You can calculate how the words will be wrapped with the current column width (see wx.lib.wordwrap) and from that figure out how many lines there will be. You can then estimate the height needed by that number of lines. There will be some additional space needed for the editor's border, margins, etc. but you should ge able to get fairly close.

···

On 12/15/09 7:38 AM, werner wrote:

I am looking for a way to use a multiline textctrl for a grid column. I
figured most of it out looking at the grid demo and scanning the list
archive, but I can't see how I could autosize the hight of the row based
on the text within the textctrl when rendering.

Does anyone have some tips on how to go about this.

--
Robin Dunn
Software Craftsman