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
255
Determine if node activated as a result of user click....
posted

I need to be able to determine if a node was activated as a result of a user click(as opposed to a programatic activation or other automatic behavior).

I have looked at the Click event of the UltraTree, but this seems to be triggered after the AfterActivate(and AfterSelect) events. So setting a flag in the click event and then inspecting it in the AfterActivate event can't work.

How does the tree know that a node has been clicked in order to activate it? Maybe I could do the same thing myself?


Parents
  • 69832
    Offline posted

    You could use the MouseDown event, which also has the benefit of giving you the client coordinates of the point at which the user clicked. This can be passed to the UltraTree.GetNodeFromPoint method to hit test for a node.

Reply Children