Okay, I've fixed this via somewhat more careful reading of the doc about
the events and such. Sorry.
However, it does appear that in this respect the behavior of wxTreeListCtrl
differs from that of wxTreeCtrl. One seems to be raising an
EVT_TREE_ITEM_EXPANDING when AddRoot() is called while the other is not.
···
--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456
If you are on Windows then it is probably because wxTreeListCtrl is based on the wxGenericTreeCtrl used on non-wxMSW ports instead of the native tree control used on MSW. That's not to say that it's right, just trying to provide an excuse for the difference.
···
gary.h.merrill@gsk.com wrote:
Okay, I've fixed this via somewhat more careful reading of the doc about
the events and such. Sorry.
However, it does appear that in this respect the behavior of wxTreeListCtrl
differs from that of wxTreeCtrl. One seems to be raising an
EVT_TREE_ITEM_EXPANDING when AddRoot() is called while the other is not.
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!