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
190
how to get hot track appearance while dragging
posted

I have an UltraTree with its HotTracking property set to true.  This works great when the mouse hovers over the tree, so I can see which node I'm over.  I have another control that I need to be able to drag contents into this tree.  When I do so, the hot tracking doesn't seem to fire.  Do you have any suggestions to get the HotTracking appearance while I'm dragging over the UltraTree?

Parents
  • 69832
    Verified Answer
    Offline posted

    The other control has the mouse capture so UltraTree is not supposed to exhibit hot tracking effects. The 'UltraTree Drag and Drop' sample, which ships with the SDK, demonstrates how to use our IUIElementDrawFilter interface to draw a drop indicator. Alternatively, you could probably do something like the following: handle the DragOver event, hit test for the node at the cursor position using the GetNodeFromPoint method, and manually set/reset the UltraTreeNode.Override.NodeAppearance as the cursor passes over each node.

Reply Children