Ticket #2307 (closed defect: duplicate)
wxTreeCtrl + wxTR_MULTIPLE flag: SEL_CHANGED only fires on item focus change
| Reported by: | jmikulasek | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | wxMSW | Version: | |
| Keywords: | wxTreeCtrl, wxTR_MULTIPLE, wxEVT_TREE_SEL_CHANGED | Cc: | jmikulasek, wx@…, wxscary@…, net147@… |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
When you have a wx.TreeCtrl instance with
a wx.TR_MULTIPLE style the wx.EVT_TREE_SEL_CHANGED
event is not always triggered when deselecting a node
while pressing Ctrl.
It can be demonstrated in the wxPython demo. When I
uncomment the wx.TR_MULTIPLE style flag and select
several items while pressing Ctrl (so all stay selected)
and then deselect the LAST selected item (still pressing
Ctrl), nothing gets printed in the log window.
It is interesting that when you try it on leaf nodes,
the icon changes, but the event is not triggered.
I am running Windows XP, Python 2.4, wxPython 2.5.3.1
(unicode).
Change History
Note: See
TracTickets for help on using
tickets.
