How to identify which node is 'clicked' by user (not on mouse hover) RRS feed

  • Question

  • Hi,

    I am using  gViewer to display graph.  I have captured event gViewer1_SelectionChanged , that gives me where mouse is. (on edge or node).  but I do not want to perform any action on mouse hover.   I want to wait until user clicks on the object.

    so how do i identify if user has done click in gViewer1_SelectionChanged ?


    am i thinking in wrong direction?


    Wednesday, August 8, 2012 12:54 PM


  • Hello Jignesh,

    You can subscribe to the mouse click event. Inside the event code gvewer.SelectedObject, if it is not a null, gives you the clicked object,


    Lev Nachmanson

    Wednesday, August 8, 2012 4:43 PM