Click to See Complete Forum and Search --> : Are you capable of implementing a TreeList in VB?


noel gallagher
February 13th, 1999, 02:11 PM
I've seen a few MFC examples of how to do this but nothing in VB. What I'm talking about is how to create a control that is a combination of the TreeView and ListView. Basically a ListView that is capable of having multiple column headers with the ability to expand/collape as well as indent rows. I guess the most popular example is used in Outlook Express to view message headers.


noel

Chris Eastwood
February 14th, 1999, 12:13 PM
Hi Noel


It is possible in VB to create a treelist like the example on the MFC CodeGuru site. It just takes a lot of work (I did start converting the application into VB but gave up due to other concerns - like work).


I may start to rewrite it once again (as an ActiveX control) as I do think it's a pretty cool control.


The window in Outlook Express is actually a standard ListView control with the items being indented (you can see an example of this in VB on this site - I think the example is called frmIndentListView - by myself).

If you want to add the +/- icons though - that's going to take a bit of work. You'll have to use the listview in 'virutal' mode (or whatever it's called) where it asks you for data through a callback.


Regards


Chris Eastwood


CodeGuru - the website for developers

http://www.codeguru.com/vb

noel gallagher
February 14th, 1999, 04:45 PM
Chris, thanks for the response. I would be very interested to see that control if you get around to rewriting it again!


Noel