Announcement

Collapse
No announcement yet.

Questions about TreeView

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Questions about TreeView

    Hello,

    I need a TreeView in my application. I already studied some examples with SysTreeView32. Now I've the following open points:
    - is it possible to have a TreeView where the parents are "grey-checked" as long as not all childs are checked?
    - is it possible to add some kind of bars on each node (in my case I want to show the size of the childrens)
    - is it possible to implement some kind of colums to the TreeView, so that each node consists not only of one element

    Regards,
    Jochen

  • #2
    To answer the first question - Yes, here's an example: http://www.powerbasic.com/support/pb...ad.php?t=23042

    I'm having trouble visualising the second and third - do you have screen shots /example programs that use those techniques.?
    Rgds, Dave

    Comment


    • #3
      Hello Dave,

      thank you. That solves point 1. Regarding point 2: Have a look at this screenshot: http://www.jam-software.de/treesize_...reesize_gr.gif

      Reg. point 3 I'll illustrate it with following example:

      Root 1
      >>SubNode 1 AddInfo1a AddInfo1b
      >>SubNode 2 AddInfo2a AddInfo2b
      >>SubNode 3 AddInfo3a AddInfo3b
      Root 2
      >>SubNode 4 AddInfo4a AddInfo4b
      >>SubNode 5 AddInfo5a AddInfo5b
      >>SubNode 6 AddInfo6a AddInfo6b
      [...]

      Naturally I can do this with somekind of spaces or tabs, but this is not very professional.

      Regards,
      Jochen

      Comment


      • #4
        Hello Dave,

        thank you. That solves point 1. Regarding point 2: Have a look at this screenshot: http://www.jam-software.de/treesize_...reesize_gr.gif

        Reg. point 3 I'll illustrate it with following example:

        Root 1
        >>SubNode1 AddInfo1a AddInfo1b
        >>SubNode2 AddInfo2a AddInfo2b
        >>SubNode3 AddInfo3a AddInfo3b
        Root 2
        >>SubNode4 AddInfo4a AddInfo4b
        >>SubNode5 AddInfo5a AddInfo5b
        >>SubNode6 AddInfo6a AddInfo6b
        [...]

        Naturally I can do this with somekind of spaces or tabs, but this is not very professional.

        Regards,
        Jochen

        Comment


        • #5
          For multi-column info, instead of using a treeview control, maybe you should look at a listview control using the "indent" options.
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            looking at your example above, my guess is that it is done by drawing on the treeview's DC. Here is a link which may be useful should you wish to pursue that line of investigation.

            Comment

            Working...
            X