For those who would like to try this out themselves, I believe this is all
you need to get the code running under windows with version 2.4.0.2 of
wxPython (wxWindows really, I'm just using the wxPython tarball):
1) Drop the attached treelistctrl.cpp into src/generic
2) Drop the attached treelistctrl.h into include/wx/generic
3) Add friend declaration to include/wx/treebase.h (just after the
wxGenericTreeCtrl one at line 260)
friend class WXDLLEXPORT wxTreeListMainWindow;
4) Add an entry to the GENERICOBJS section in src/msw/makefile.vc:
$(GENDIR)\$D\treectlg.obj \
I think that's all I needed to get it to compile. If you want to give it a
spin and have the samples directory (they weren't in the tarball I got),
then make a directory in sample called treelist and drop the rest of the
attached files in there. Then just add an entry for treetest to the
samples/makefile.vc (remembering tabs of course)
cd $(WXDIR)\samples\treelist
nmake -f makefile.vc $(MAKEFLAGS)
And it *should* make fine. I made a few edits to the treetest code to test
that the control could deal with large trees. it does so a charm on this
machine.
Seem to be making quick progress with the SWIG code - will report back with
results when I have them
S.
treelistctrl.cpp (136 KB)
treelistctrl.h (18.2 KB)
icon1.xpm (1.3 KB)
icon2.xpm (1.31 KB)
icon3.xpm (1.34 KB)
icon4.xpm (1.35 KB)
icon5.xpm (1.33 KB)
makefile.vc (347 Bytes)
mondrian.xpm (1.31 KB)
treetest.cpp (37.9 KB)
treetest.h (8.7 KB)
treetest.rc (24 Bytes)