Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
Activate node in wintree
posted

Hello!

 

I am trying to activate a node in a wintree but I don't really think that i have succeeded yet...

 

Tree.ActiveNode = Tree.Nodes(

"MyNode").Nodes("MyNodeAgain")

Tree.ActiveNode.Selected =

True

The node gets active but I would like to get the same appearance of the node as on the image. That is when you have clicked on it...

I am sorry for this question but I cannot find the property or method for this..

Probably a fast and quick solution ;-)

Thanks!

/Henrik

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    I think what might be happening is that the node is in fact active and selected, but because the HideSelection property defaults to true, it is not depicted as such because the control doesn't have focus. You can either set HideSelection to false, or select the control after selecting/activating the node.

    Note that the node will appear selected when it doesn't have focus, but it will not display the focus rectangle.

Children