How to make TGraph line immobile while keeping markers editable

Hi
I am developing a GUI application and I would like to give users the freedom to edit points on a TGraph. While it is doable, if I click on the line rather than the marker by mistake, the entire line moves and i don’t want that. Is there a way to make the line immobile while keeping the markers mobile.

thanks in advance


ROOT Version: 6.12/06
Platform, compiler: linuxx8664gcc, gcc 7.3.1


This is done in TGraph:ExecuteEvent. You would need to change this method in order to deactivate the graph move.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.