Re: [ROOT] using bars and buttons

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 14 2001 - 16:35:46 MEST


Hi,

Primrose Mbanefo wrote:
> 
> Hello everyone,
> 1. I would like to have a file containing all the fonctions my buttons are
> going to  use. How can I acheive this? My main problem is that I can only use
> instruction I can put on the command line.
> 

Put all your functions in the same file, eg myFile.C
Load this file with .L myFile.C
To invoke one function, do myfunction();

> 2.I've tried putting a gROOT->Reset() and a gROOT->Reset("a") in all the
> macros but this doesn't clear the screen. All the pads recently created rest
> on the screen. What can I do to completely remove them?
> 
  you must clear the canvas;  canvas->Clear();

Rene Brun



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