I’m quite enthusiastic about the wxGrid componenet. It seems to be just what I need to display a list of mail messages. I would like, though, to be able to emulate the column-sorting feature of some Windows widgets, where one click on a heading gives you that column sorted in one order, a second click reverses the order.
It should be possible to use EVT_GRID_LABEL_* to capture the events, but I haven’t yet found a way of setting a renderer on the grid control to allow the column labels to include the grey caret indicating the sort order. Everything in the demo seems to use the default behavior of column selection to action label clicks, and I’ve no idea when the labels are rendered or by what.
regards
Steve
···
–
Steve Holden: http://www.holdenweb.com/ ; Python Web Programming: http://pydish.holdenweb.com/pwp/