I need the functionality of a wxListCtrl, (ie, multi-columned list,
with "row" selection), but I need to have the rows be of varying
"thickness", containing newlines in the fields in certain columns.
(I'm trying to present an ordered list of "rules", of the form:
···
--------+----------------+-----+--------------
if foo | starts with | bar |
AND qux | doesn't match | baz | use X
--------|----------------|-----|--------------
if qux | contains | zot | use Y
--------|----------------|-----|--------------
...
and then I need to reorder the rules to indicate search order, by
moving the selected row around in the list.)
However, wxListCtrl (at least under MSW) doesn't handle newlines
and/or varying thickness rows, wxGrid doesn't have much documentation,
and its demo's show only cell selection, rather than row selection.
Can anybody suggest how I can get the effect I need?
Thanks in advance,
/Will Sadkin
Parlance Corporation
I need the functionality of a wxListCtrl, (ie, multi-columned list,
with "row" selection), but I need to have the rows be of varying
"thickness", containing newlines in the fields in certain columns.
(I'm trying to present an ordered list of "rules", of the form:
--------+----------------+-----+--------------
if foo | starts with | bar |
AND qux | doesn't match | baz | use X
--------|----------------|-----|--------------
if qux | contains | zot | use Y
--------|----------------|-----|--------------
... and then I need to reorder the rules to indicate search order, by
moving the selected row around in the list.)
However, wxListCtrl (at least under MSW) doesn't handle newlines and/or varying thickness rows, wxGrid doesn't have much documentation, and its demo's show only cell selection, rather than row selection.
Can anybody suggest how I can get the effect I need?
Use a third parameter to wxGrid.CreateGrid, like this:
self.CreateGrid(25, 25, wxGrid.wxGridSelectRows)
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!