wx.grid.Grid & SetScrollPos

I am using Grid as a log window. There is only one column in which
messages are send.
After appending a row I am using

self.SetScrollPos(wx.VERTICAL, numRow*10)

10 = height of single column. (This is wrong. You may have a column
with more then 2 lines)

1. This actually moves the scroller but not the contents of the grid.

2. How to set vertical scroll position so that it always focus on the
last column?

3. Is it possible to use ListCtrl with multi line text? If yes, then I
think it would be easier then wx.Grid.

Thanks

Prashant

I am using Grid as a log window. There is only one column in which
messages are send.
After appending a row I am using

self.SetScrollPos(wx.VERTICAL, numRow*10)

10 = height of single column. (This is wrong. You may have a column
with more then 2 lines)

1. This actually moves the scroller but not the contents of the grid.

2. How to set vertical scroll position so that it always focus on the
last column?

Call grid.MakeCellVisible(row, col)

3. Is it possible to use ListCtrl with multi line text?

No.

···

On 3/9/10 9:13 AM, King wrote:

--
Robin Dunn
Software Craftsman