Hi, I am using TControlBar to show event by event (entry by entry if you like). I already have a function called “show_entry” and I am trying to call that function inside control bar to make an interactive session. For example:
show_entry(0);
TControlBar *menu = new TControlBar("vertical","viewer",600,500);
menu->AddButton("First entry","show_entry(0)","First entry"); // show_entry is a defined function
menu->AddButton("Next","how?","Type down entry number");
menu->AddButton("Select entry","hiw?","insert an entry");
menu->AddButton("Exit",".q","Exit ROOT");
gROOT->SaveContext();
menu->Show();
“First” works fine because it is just show_entry(0), but what is more complicated is to show next entry (Next) and to choose an entry (Select an entry). Not sure how to do it.