Control Bar

Marcelo Munhoz (munhoz@physics.wayne.edu)
Wed, 12 May 1999 09:59:46 -0400 (EDT)


Hello,

I'm trying to create a Control Bar that has two columns using the following commands:

{
TControlBar* hybbar = new TControlBar("horizontal","SVT Ladder");
hybbar->SetNumberOfColumns(2);
hybbar->AddButton(" 1 - 1 ",".x DrawHist.C(*phist,1, 1)","Wafer 1, Hybrid 1");
hybbar->AddButton(" 1 - 2 ",".x DrawHist.C(*phist,1, 2)","Wafer 1, Hybrid 2");
hybbar->AddButton(" 2 - 1 ",".x DrawHist.C(*phist,2, 1)","Wafer 2, Hybrid 1");
hybbar->AddButton(" 2 - 2 ",".x DrawHist.C(*phist,2, 2)","Wafer 2, Hybrid 2");
hybbar->Show();
gROOT.SaveContext();
}

But, all that I get is a vertical one column bar. What is missing here?

Thanks for your help,

Marcelo.

Marcelo G. Munhoz
Universidade de Sao Paulo - Brazil/
Wayne State University
phone: (313)5775419