CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 1999
    Posts
    2

    Are you capable of implementing a TreeList in VB?



    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

  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Are you capable of implementing a TreeList in VB?



    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



  3. #3
    Join Date
    Feb 1999
    Posts
    2

    Re: Are you capable of implementing a TreeList in VB?



    Chris, thanks for the response. I would be very interested to see that control if you get around to rewriting it again!


    Noel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured