Dear Rooters,
The TControlBar::AddControlBar(TControlbar *) method produces usual
button with no functionality at all. If someone can give me a hint on
how to use this method I would apreciate it. (Originaly I was trying to
implement a submenu with it.)
I use Root 3.00.06 buit from source on Linux Debian 2.2 i686 with
gcc 2.95 libc5/glibc6.
Below is a sample macro.
Thank you,
Mikhail Ukhanov.
----------------------------------------------------------------
{
gROOT->Reset();
TControlBar *bar = new TControlBar("horizontal","main menu");
TControlBar *bar1 = new TControlBar("horizontal","SubMenu");
bar->AddButton("One",".print 1", "print 1");
bar->AddButton("Two",".print 2", "print 2");
bar->AddControlBar(bar1);
bar->AddButton("Quit",".q", "Exit");
bar1->AddButton("One",".print 21", "print 21");
bar1->AddButton("Two",".print 22", "print 22");
bar1->AddButton("Three",".print 23", "print 23");
bar->Show();
}
----------------------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET