Re: [ROOT] multiple arguments in Emit

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Feb 22 2002 - 10:26:53 MET


Do something like:

//______________________________________________________________________________
void TCanvas::Picked(TPad *pad, TObject *obj, Int_t event)
{
   // Emit Picked() signal.

   Long_t args[3];

   args[0] = (Long_t) pad;
   args[1] = (Long_t) obj;
   args[2] = event;

   Emit("Picked(TPad*,TObject*,Int_t)", args);
}


Cheers, Fons.



On Thu, 2002-02-21 at 22:33, Joe Robe wrote:
> Hi Rooters,
> 
> what is the correct syntax for multiple arguments in Emit ??
> 
> I have
> 
> MyMethod(Int_t a,Int_t b)
> 
> and
> 
> Emit("MyMethod(Int_t,Int_t)",a,b)
> 
> results in error connect cnat tak3 3 parameters....
> 
> Joe
> 
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET