ControlBar

Jayoung Wu (jayoung@ipst.umd.edu)
Wed, 15 Apr 1998 13:43:46 -0400 (EDT)


Is there something wrong with my code?
My code("aticdemos.C") is
{
gROOT->Reset("a");
bar = new TControlBar("vertical");

bar->AddButton("Start!",".x start.C", "Read 1st event from aticdata.root");
bar->AddButton("Event++",".x nextevent.C", "Next Event read");
bar->AddButton("Track",".x ytrack.C", "Tracking Incident X(Y) Position");
bar->AddButton("HITS-DISPLAY",".x evdisp.C", "DISPLAY HITS");

bar->Show();
gROOT->SaveContext();

}

---------------------------------------------------------
root> .x aticdemos.C
--> It gives me a controlbar which has four buttons(Start!, Event++, Track,
HITS-DISPLAY) vertically.
First two buttons(Start!, Event++) work well.
In some reason the other two buttons(Track, "HITS-DISPLAY) does not
work. Whein I click it, it gives Sigmentation Violation Error message.

However, when I execute them manually instead of using controlbar
(root> .x ytrack.C
root> .x .x evdisp.C)
Those are working well without any problem.

Note: ytrack.C & evdisp.C include several plots while start.C &
nextevent.C do not have them.

----
Thanks in advance!
Jayoung