I've a need for a widget like a grid, but whose cells expand downwards as you
type and the text in the cell increases. I didn't notice any of the cells in
the grid demo doing that.
Eg if you had save 5 columns, but you typed in one, like you would in the
expando text, they all expand.
I put the expando's onto a sizer on a panel and this pretty much works ok for
a single row, but I more need a proper grid arrangement with multiple rows,
which I want to be able to add dynamically.
If I use multiple panels with this arrangement on another sizer the next row
down, obviously dosn't expand as the top row above enlarges.
I wondered if
a) The wx grid could do that, as it dosn't seem to in any of the demo's
b) If anyone else has had this need and found a solution
c) If is is possible, if so any guidelines as to how to go about it.
I've a need for a widget like a grid, but whose cells expand downwards as you type and the text in the cell increases. I didn't notice any of the cells in the grid demo doing that.
Eg if you had save 5 columns, but you typed in one, like you would in the expando text, they all expand.
I put the expando's onto a sizer on a panel and this pretty much works ok for a single row, but I more need a proper grid arrangement with multiple rows, which I want to be able to add dynamically.
If I use multiple panels with this arrangement on another sizer the next row down, obviously dosn't expand as the top row above enlarges.
I wondered if
a) The wx grid could do that, as it dosn't seem to in any of the demo's
b) If anyone else has had this need and found a solution
c) If is is possible, if so any guidelines as to how to go about it.
It's possible with a little work. You'll want to make custom cell editor and custom cell renderer classes that expand the grid's row size as needed for displaying the cell contents.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!