Re: 'full' root session in TRint ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon May 24 1999 - 12:23:19 MEST


Ulrich,
Yes, of course. It is not sufficient to create the TRint object,
you must also invoke TRint::Run().
Below you will find the example of the Root main program itself.

Rene Brun

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// RMain                                                                //
//                                                                      //
// Main program used to create RINT application.                        //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

//*KEEP,TROOT.
#include "TROOT.h"
//*KEEP,TRint.
#include "TRint.h"
//*KEND.

extern void InitGui();
VoidFuncPtr_t initfuncs[] = { InitGui, 0 };


TROOT root("Rint","The ROOT Interactive Interface", initfuncs);

//______________________________________________________________________________
int main(int argc, char **argv)
{
#ifndef WIN32
   char appname[] = "Rint";
#else
   char appname[] = "Root_Rint";
#endif
   TRint *theApp = new TRint(appname, &argc, argv, 0, 0);

   // Init Intrinsics, build all windows, and enter event loop
   theApp->Run();

   delete theApp;

   return(0);
}



On Mon, 24 May 1999, Ulrich Jost wrote:

> Hello,
> 
> is it possible to get a 'full' root session within a program using a TRint
> object? Eg when you have a TGraph, in a root session you can select the
> graph or points of it, pop up a menu to change its properties etc which is
> not possible using a program. Maybe via one of the options of the TRint
> constructor? I couldn't find them explained.
> 
> Thanks, Ulrich
> 
> 



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