wxTreeCtrl Images

The state images are for an additional icon for the items representing an application specific state. It doesn't look like it is fully implemented for the generic control used on wxGTK and wxMac, so setting that image list would only have meaning on Windows. Unfortunately it looks like there are SetState/GetState methods needed to make it work that are not wrapped, I'll add them now.

The button image list is used for replacing in the buttons used for the expanded/collapsed state (the + or -) but they can only be replaced when using the generic control, there is no equivallent for the native Windows tree control. It is really meant for making the generic control to conform more to platform specific standards for new platform ports and so I didn't think it made sense to wrap it.

ยทยทยท

Richard.Townsend@edl.uk.eds.com wrote:

The wxWidgets documentation for wxTreeCtrl lists a number of methods relating to images.

Some of the methods refer to 'Normal' images and some refer to 'State' images. I have seen example code for former but not for the latter. (There are also methods for 'Button' images, but these do not appear to be exported to wxPython.)

Could somebody please describe the purpose of the 'State' images and how they are used? Presumably they depend on some state of an item in the tree, how is that state modified?

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