Re: [ROOT] TWin32BrowserImp -- Execute Default Action??

From: Valeri Fine (fine@bnl.gov)
Date: Fri Oct 12 2001 - 17:06:09 MEST


> Thanks Valeri,

> Is this something that I could concievably cut and paste from the unix version and then tweak to get it working?
> I just need to run a shell command action.


http://root.cern.ch/root/htmldoc/TSystem.html#TSystem:Exec
method available via gSystem global pointer as follows:


gSystem->Exec("sheel command here")

see $ROOTSYS/tutorials/rootalias.C for examples.

However I am  not sure this helps your.

I wonder if that you really need is the overloading of  TObject::Browse
When you click the object of your class, the virtual method TObject::Browse
is called. This means one can always overload that method to provide the custom
"click" response.

May be you should see how TSystem::Browse method is implemented.
http://root.cern.ch/root/htmldoc/src/TSystemFile.cxx.html#TSystemFile:Browse

For example you may create your own class derived from TSystemFile
to get the custom action just you click the file name with TBrowser.


  Hope this helps
  Best regards,           Valeri


----- Original Message -----
From: Valeri Fine
To: Brandon Kohn ; Roottalk List
Sent: Wednesday, October 10, 2001 8:53 AM
Subject: Re: [ROOT] TWin32BrowserImp -- Execute Default Action??


No it doesn't.
  Valeri
-----
Dr.Valeri Fine
STAR/US Atlas                                    E-mail: fine@bnl.gov
Brookhaven National Lab                   Phone: +1 631 344 7806
Upton, NY 11973-5000                       FAX:     +1 631 344 4206
USA



----- Original Message -----
From: Brandon Kohn
To: Roottalk List
Sent: Wednesday, October 10, 2001 4:44 PM
Subject: [ROOT] TWin32BrowserImp -- Execute Default Action??


Hi Rooters,

Just a quick frage about the win32 version of TBrowser.  Does it make use of the root.mime file (actions and so forth?).  I'm
trying to get some functionality out of an object simply by clicking on it, and it isn't working.

Thanks
Brandon



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