There seems to be something wrong with the mouse events on a
wxTreeListCtrl.
When I add EVT_RIGHT_DOWN. it looks like no event is fired. The coding
was working with a normal wxTreeCtrl
Then I tried to catch all mouse events with EVT_MOUSE_EVENTS, then I do
get "some" events (not all, it seems), but when I close the frame with
the TreeListCtrl I get a segmentation fault.
I hope you can help me with this one. (I'm sorry no code example yet) If
you need one, I will make one.
When I add EVT_RIGHT_DOWN. it looks like no event is fired. The coding
was working with a normal wxTreeCtrl
The wxTreeListCtrl is actually composed of two windows, perhaps you need to bind the event to treelist.GetMainWindow() instead?
It works! Thanks a lot, but I do not quite understand it. Why is this,
and why is it different from the 'standard' behaviour?
Because they are different implementations. The wxGenericTreeCtrl (used by default for wxTreeCtrl on GTK and MAC) was not designed to be extended in this way so Alberto had to reimplement the tree parts using a bunch of copy and paste. The two implementations have diverged a bit since then.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!