[Fwd: cint, string et TControlBar]

Yves Schutz (schutz@ganil.fr)
Tue, 03 Feb 1998 18:06:49 +0100


This is a multi-part message in MIME format.
--------------8385004BF23D600528C022CF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

-- 
Yves SCHUTZ  GANIL (IN2P3 - CNRS) collaboration TAPS http://ganp03.in2p3.fr
GANIL                 Telephone: (33) 2 31 45 47 01    
BP 5027               Fax      : (33) 2 31 45 46 65
F-14076 Caen          e-mail   : mailto:SCHUTZ@IN2P3.FR
--------------8385004BF23D600528C022CF
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <34D745CF.233F474A@ganil.fr> Date: Tue, 03 Feb 1998 17:29:03 +0100 From: Yves Schutz <schutz@ganil.fr> Organization: GANIL X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.32 i686) MIME-Version: 1.0 Newsgroups: cern.root Subject: cint, string et TControlBar Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

Bonjour,

Le macro suivant ne marche pas : le premier bouton n'a pas le bon "hint".

La version compilee marche.

Merci pour l'aide ..... Yves =========================================================== { gROOT->Reset() ; Int_t ideb = 2541, ifin = 2544; char* FileName = new char[200]; char* hint = new char[200]; char* command = ".!ls" ; Int_t NumberOfColumns = ifin - ideb + 2; TControlBar * ntuple_bar = new TControlBar("horizontal","Ntuple selection", "Ntuple selection"); ntuple_bar->SetNumberOfColumns(NumberOfColumns); Int_t i ; for ( i = ideb; i <= ifin; i++){ sprintf(FileName,"dst%d.root\0",i) ; sprintf(hint,".x open_Ntuple.C(%c%s%c)\0",'"',FileName,'"') ; ntuple_bar->AddButton(FileName, command, hint); }

ntuple_bar->AddButton("Close","{delete ntuple_bar;}","Close this toolbar"); ntuple_bar->Show(); gROOT.SaveContext(); }

-- 
Yves SCHUTZ  GANIL (IN2P3 - CNRS) collaboration TAPS http://ganp03.in2p3.fr
GANIL                 Telephone: (33) 2 31 45 47 01    
BP 5027               Fax      : (33) 2 31 45 46 65
F-14076 Caen          e-mail   : mailto:SCHUTZ@IN2P3.FR

--------------8385004BF23D600528C022CF--