Azaret / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

SessionTreeView: Show lines, different folder icons for expanded vs. collapsed #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to changes to SessionTreeView:

1. Lines between the nodes should be shown (treeView1.ShowLines = true). 
Perhaps this could be made an option with default to the current behaviour.

2. The folder icon should change when an folder is expanded or collapsed. This 
would require a new icon in imageList1 and one event handler for BeforeCollaps 
and one for BeforeExpand:

        private void treeView1_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            e.Node.ImageIndex = 2;
            e.Node.SelectedImageIndex = 2;
        }

        private void treeView1_BeforeCollapse(object sender, TreeViewCancelEventArgs e)
        {
            e.Node.ImageIndex = 0;
            e.Node.SelectedImageIndex = 0;
        }

Original issue reported on code.google.com by breker.c...@gmail.com on 31 May 2012 at 2:35

GoogleCodeExporter commented 9 years ago
Adding option for show lines but need icons for the folder open...not in the 
famfamfam silk set.

Original comment by btatey...@gmail.com on 19 Aug 2012 at 3:24

GoogleCodeExporter commented 9 years ago
Would be really nice to be able to set the icon for whatever node, what do you 
think?

Original comment by lburgazzoli@gmail.com on 20 Aug 2012 at 9:15