Re: 'full' root session in TRint ?

From: Ulrich Jost (jost@evalo1.ific.uv.es)
Date: Mon May 24 1999 - 12:42:31 MEST


That's not what I mean. Of course I do Run(). Still you don't have the
same functionality as if you do 'root' on a shell, eg if you touch a
TGraph with the mouse pointer, you do not get the graph selected. Or you
don't have continous updates, eg when you select logarithmic axis scaling
in the canvas popup menu, it is not executed until the program makes
another Update() call.

Ulrich


On Mon, 24 May 1999, Rene Brun wrote:

> 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