Sorting a virtual wxListCtrl and EVT_LIST_ITEM_DESELECTED

Hello all,
Is adding a sorting facility with wxColumnSorterMixin to
a virtual wxListCtrl possible ?

Also, with a virtual wxListCtrl, the EVT_LIST_ITEM_DESELECTED
event handler does not seem to be processed. One can check this
in the demo by comparing the virtual with the regular wxListCtrl
that does work fine.
I use wxPython 2.4.0.7 running on python 2.2.1
Good day,
Arye.

Hi All,

I was previously receiving the daily digest and hence my attachments were
getting a bit broken. If some still has Bob Klimek's response and attachment
to "best way to display images?" could they please forward it onto me.

Cheers

Dave

dave@blinkworks.com.au

cheers all... i got it now. Thanks.

Dave

···

----- Original Message -----
From: "David McDonnell" <dave@blinkworks.com.au>
To: <wxPython-users@lists.wxwindows.org>
Sent: Thursday, May 01, 2003 8:54 AM
Subject: [wxPython-users] can someone please repost a previously posted
attachment?

Hi All,

I was previously receiving the daily digest and hence my attachments were
getting a bit broken. If some still has Bob Klimek's response and

attachment

to "best way to display images?" could they please forward it onto me.

Cheers

Dave

dave@blinkworks.com.au

Arye Halioua wrote:

Hello all,
Is adding a sorting facility with wxColumnSorterMixin to a virtual wxListCtrl possible ?

No, wxColumnSorterMixin assumes that it is not a virtual wxLIstCtrl. It would be easy to add that functionality to your class yourself (or make a new mixin) though. Sorting a virtual wxListCtrl is just a matter of sorting your data and calling Refresh, and the rest is just catching the column click events and setting the up/down images on the column headers.

Also, with a virtual wxListCtrl, the EVT_LIST_ITEM_DESELECTED
event handler does not seem to be processed. One can check this
in the demo by comparing the virtual with the regular wxListCtrl
that does work fine.
I use wxPython 2.4.0.7 running on python 2.2.1

On which platform?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!