Re: Motif application

From: Valery Fine (fine@mail.cern.ch)
Date: Thu Jul 17 1997 - 21:16:57 MEST


> > 1) Can you let me see a simple example on how to open the TMotifBrowser
> > in a stand-alone application?

  To open any browser just create an object of TBrowser class (from 
ROOT command line, from ROOT macro or with your own stand-alone 
code). For example:

   TBrowser b;
   TBrowser *b = new TBrowser;

  ROOT will create this object for you if you select 
"browser"/"explorer" menu position in canvas drop-down menu.

  Anyway this creates the TBrowser object and open its window (under 
Motif or under WIN32). You don't need to change your program when you 
move your code from one platform (UNIX) to another one (ket's say 
Windows NT).

> > 
> > 2) How to manage the TMotifApplication?, is it the corresponding class
> > of TApllication under a Motif enviroment?

  Exactly the same way just create an instance of the TApplication 
class.  But I  would suggest to create your share lib/DLLs and use 
ROOT environment to load your classes and perform your task unless 
you get some ROOT experience. This way ROOT creates TApplication for 
you and always properly.

> > 
> > 3) Where I can learn something about the Seek_t objects?
> > 

    the "_t" suffix means it is a simple type not a class.
    Please read: http://root.cern.ch/root/Conventions.html

  Hope this helps,
   With my best  regards,
                        Valery
=================================================================
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for NuclearRes   Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              

Dr. Valeri Faine
    ------------                 Phone: +41 22 767 6468
CERN                             FAX  : +41 22 767 7910
CH-1211 Geneva, 23               mailto:fine@mail.cern.ch 
Switzerland                      http://nicewww.cern.ch/~fine
                                 



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