Re: Moving objects on canvas

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 20 1999 - 09:21:22 MEST


Hi Mike,
This is true if your canvas fillcolor is zero,
for example when you select the "Plain" style.
To circumvent this problem, you can replace the fillcolor=0
by fillcolor=10

Rene Brun

M. Sievers wrote:
> 
> Hi,
> 
> I found that when moving e.g. the statistics box with the mouse on a
> canvas with root 2.23/04 (Linux, SuSE 6.0), the 'background' part of the
> Canvas is not cleared. That is, that part of the statistics box which lies
> outside e.g. a histogram, is not deleted and remains visible.
> This applies also to the histogram itself if you move it. It does not
> affect the postscript output. Is this some side effect of a modification
> or did I miss a compile switch?
> 
> I tested this with the following commands:
> 
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   2.23/04   13 October 1999   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> CINT/ROOT C/C++ Interpreter version 5.14.18, Oct 3 1999
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TH1D * a = new TH1D("a","a",10,0,10)
> root [1] a.Fill(3.2);
> root [2] a.Draw()
> 
> and then moved the stats box around a little.
> 
> Bye,
> Mike
> 
> --------------------------------------------------------------------------
> Michael Sievers
> Michael.Sievers@desy.de
> --------------------------------------------------------------------------
> esa$ gcc -Wall -o ariane5 ariane4.c
> ariane4.c: 666: warning: long float implicitly truncated to unsigned type
> esa$ ariane5



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET