ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   selection bug treeview (https://www.excelbanter.com/excel-programming/325990-selection-bug-treeview.html)

RB Smissaert

selection bug treeview
 
Just come across a bug in the treeview control.
When I bring up a popup menu by right-clicking a node in the treeview and
then ignore the menu by left-clicking another node this new node gets
selected
but the highlight will stay with the old node. From then on no matter what
you
do the highlight can't be moved from that node unless you delete the node.
I have now found out that this is in fact a very old bug, but there is not
much written
about it and sofar I have come across no good solution to bypass this bug.
Setting the highlight in code is not really a solution as you then get
trouble when you
click in the treeview but not on a node.
Thanks for any advice about this.

RBS



All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com