sagulnet / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

KMLTreeView Nodes do not remain highlighted when the treeview loses focus #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What should this feature enhancement do?
Google Earth by default keeps the treeview node highlighted when the treeview 
panel loses focus.  It could save people time if the default behavior in the 
plugin was the same.

Are there any known workarounds that produce the similar results?
Simply programming the HideSelection field to false allows 'default' operation.

Please provide any additional information below.

Original issue reported on code.google.com by tracyJan...@gmail.com on 29 Nov 2012 at 6:34

GoogleCodeExporter commented 8 years ago
Hi Fraser,  you said to move our discussion to this forum instead of 
stackexchange.  I just found my problem.  When I went to add another 
kmltreeview I must have deleted the original one and added another and forgot 
to change the HideSelection back to true.  It got me again! :)

Original comment by tracyJan...@gmail.com on 6 Dec 2012 at 2:57

GoogleCodeExporter commented 8 years ago
This is going to be in the next commit. 

1) There will be a property KmlTreeView.HideSelectedNodeOnBlur that controls 
this behaviour. It will default to false so that...

When a KmlTreeViewNode is selected and the KmlTreeView has focus, the 
KmlTreeViewNode will be highlighted with SystemColor.Highlight and 
SystemColor.HighlightText - it will also have 'marching ants' around the node.

When a KmlTreeView is selected and the KmlTreeView looses focus, the node will 
be highlighted with SystemColor.Highlight and SystemColor.HighlightText with no 
'marching ants'.

If KmlTreeView.HideSelectedNodeOnBlur is set to true, when the KmlTreeView 
looses focus no node selection is shown at all.

2) There will be two properties of the KmlTreeView to set the hightlight 
colours of for the nodes. `BlurHighlightColour` and `BlurHighlightTextColour`

I hope that covers it!

Thanks,

Fraser

Original comment by fraser.c...@gmail.com on 9 Dec 2012 at 4:11

GoogleCodeExporter commented 8 years ago

Original comment by fraser.c...@gmail.com on 17 May 2013 at 10:53

GoogleCodeExporter commented 8 years ago
No further development now that the Earth API is depreciated. 

Original comment by fraser.c...@gmail.com on 17 Dec 2014 at 3:20