[Fwd: cint, string et TControlBar]

From: Yves Schutz (schutz@ganil.fr)
Date: Tue Feb 03 1998 - 18:06:49 MET


-- 
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

attached mail follows:


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



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