locked
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 ?

    OR

    am i thinking in wrong direction?

    Regards

    Wednesday, August 8, 2012 12:54 PM

Answers

  • 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,

    Thanks,


    Lev Nachmanson



    Wednesday, August 8, 2012 4:43 PM