Results 1 to 2 of 2

Thread: (Resolved) Treeview with selection gauges

  1. #1

    Thread Starter
    Lively Member jimmymou's Avatar
    Join Date
    May 2001
    Location
    Luxembourg
    Posts
    74

    (Resolved) Treeview with selection gauges

    Hello !

    I have a Treeview that populates a listview (exactly like a stupid file explorer). In the listview, the user can select elements (checkboxes are activated for each element). So I can select several elements in several directories.

    How can I adapt the Treeview to create a sort of representation of the selections already made (selections can be multiple), a sort of easy way of seeing wich directories contain selected elements.

    In fact some backup programs perform this same way with the Directories Treeview : there are gauges (small square), empty=no selection, blue = some selections, red =everything selected in that directory. Perhaps with the picture attribute of a node ?

    Any ideas ???

    Thanks in advance guys...
    Last edited by jimmymou; Oct 23rd, 2001 at 02:08 AM.

  2. #2

    Thread Starter
    Lively Member jimmymou's Avatar
    Join Date
    May 2001
    Location
    Luxembourg
    Posts
    74
    Hop !

    After some brainstorming, I found a technique that suit me perfectly. And the code is rather small.

    In fact, the gauge of each node has three different fill status : "empty" - "non empty" - "full". The gauge (set by node.image) is represented by three images included an imagelist bound to the Treeview.

    The status of the parent nodes of a node is determined by reviewing the status of the entire family (siblings etc...). For example if a node is "non empty", the parents nodes have to become also "non empty". If all the children nodes are "empty" the direct parent node is "empty". Same with "full". etc... Logical in fact.

    JiMmY

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