Re: [ROOT] Can I make a TGraph non editable??

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Apr 27 2002 - 09:51:30 MEST


Hi Ricardo,

In the development version in CVS, I have added 2 new functions to TGraph
  Bool_t IsEditable() const;
  void SetEditable(Bool_t editable=kTRUE) //*MENU*

You can use the SetEditable function from the context menu to set
editable=kFALSE.

Rene Brun

On Fri, 26 Apr 2002, Ricardo Eusebi wrote:

> Hi,
> 
> I have made a Canvas in which several TGraph's are plottted.
> I'm  able to change (interactively) the range in which the graph are 
> shown (just by clicking and dragging with the mouse on the axis ), which 
> is a very nice feature, but at the same time I would like to NOT be able 
> of changing interactively the position of the points  of the Graphs.
> 
> Setting the canvas to be non editable (using  
> canvas->SetEditable(kFALSE)) does not help me, since I also loss the 
> ability to change the range in which the the graph's are shown.
> 
> How can I set the Graph to non editable, while keeping the Canvas 
> editable???
> 
> 
> Thanks, for your always quick and precise response.
> 
> Ricardo
> 
> -- 
> --------------------------------------------------------------------
> Ricardo Eusebi
> High Energy Physics
> University of Rochester
> Fermilab,  (630) 840 8622
> --------------------------------------------------------------------
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:51 MET