Re: [ROOT] Re: TGaxis in guiviewer.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon May 28 2001 - 08:55:54 MEST


Hi Brett,

I have fixed a few problems connected with my mods to SetEditable.
There were side-effects in the attribute panels.
Let me know if you still have problems.

Rene Brun

Brett Viren wrote:
> 
> Brett Viren writes:
>  > I updated from CVS today (after 1-2 weeks of not doing so) and
>  > something has changed such that objects in a TRootEmbeddedCanvas
>  > sometimes no longer show up.  As an example, test/guiviewer's TGaxis
>  > no longer show up as they used to.  Is this a bug in ROOT or am I not
>  > doing things right there?  Do others see this?
> 
> Must. Learn. Patience.
> 
> A few mintues after sending the above I find the problem is due to:
> 
> bviren@minos:src> cvs log TPad.cxx
> ...
> revision 1.34
> date: 2001/05/25 06:51:45;  author: brun;  state: Exp;  lines: +15 -1
> Modify TObject::AppendPad to return immediatly if the pad is not editable.
> 
> Modify TPad::Clear, Range, RangeAxis, SetPad to return if the pad is not editable.
> ...
> 
> And I have in the Viewer class:
> 
>    fHScaleCanvas->GetCanvas()->SetEditable(kFALSE);
> and
>    fVScaleCanvas->GetCanvas()->SetEditable(kFALSE);
> 
> In the case of Viewer I need to be able to edit the canvas holding the
> TGaxis from in the code but users should *not* be able to edit these
> via point-and-click.  Previously this was the case.
> 
> I think there needs to be 2 classes of ``Editability'' one to control
> interactive edits of a TPad and one to control ``edits'' from code.
> 
> -Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET