wxTreeCtrl, multi-select and events

Hi,

I am using a wxTreeCtrl widget (through a derived class) and I need to perform actions everytime the user selects or deselects an item. I am using the wxTreeCtrl with multi-select and extended-select options. But if I use the EVT_TREE_SELECTION_CHANGED, the 'GetSelections' method doesn't return me the updated list of selected items in the case where I select a range, then deselect a single item within that range.

Am I doing something wrong? Is there an event I can use for that purpose? To be more specific, what event can I usee with wxTreeCtrl so that whenever a user changes a selection (even deselects an item within a currently selected range), the 'GetSelections' method will return me the updated list of items?

Any comments, feedback would be appreciated. Thanks.

Satchit

···

--
----
Satchidanand Haridas (sharidas at zeomega dot com)

ZeOmega (www.zeomega.com)
Open Minds' Open Solutions

Hi,

Exploring the problem further, I find that the problem occurs only on MS Windows. The GetSelections method works fine with extended-select option on Linux. I am using wxPython version 2.5.2.7. Does anyone know if this problem has been fixed in later versions?

thanks,
Satchit

···

----
Satchidanand Haridas (sharidas at zeomega dot com)

ZeOmega (www.zeomega.com)
Open Minds' Open Solutions

Satchidanand Haridas wrote:

Hi,

I am using a wxTreeCtrl widget (through a derived class) and I need to perform actions everytime the user selects or deselects an item. I am using the wxTreeCtrl with multi-select and extended-select options. But if I use the EVT_TREE_SELECTION_CHANGED, the 'GetSelections' method doesn't return me the updated list of selected items in the case where I select a range, then deselect a single item within that range.

Am I doing something wrong? Is there an event I can use for that purpose? To be more specific, what event can I usee with wxTreeCtrl so that whenever a user changes a selection (even deselects an item within a currently selected range), the 'GetSelections' method will return me the updated list of items?

Any comments, feedback would be appreciated. Thanks.

Satchit