defining action on the TControlBar

Luca Sfarzo (l.sfarzo@agora.smt.it.cern.ch)
Thu, 04 Sep 1997 17:45:24 +0200


Hello,

maybe my last question wasn't very clear.

we are trying to write a browser using Root facilities.
We have chosen to write a simpler browser by ourselves cause we want an
application just fitted on our needs but we like very much the way Root
manages (and displays) histograms.
i.e. we need both to manage a set of different histos produced by a
cluster of machines network connected both to control via a message
system such machines and so on...

About the TControlBar: is it possible to attach C routines (and not ROOT
macros) as button callbacks?
For instance, if I want to attach the exit() function to a button I
would like to use the exit() function
MainBar->AddButton("Quit session", "exit()", "Close the controlBar");
and not
MainBar->AddButton("Quit session", ".q", "Close the controlBar");

This would let me compile my progs like stand-alone applications.

How can I do this?

Many thanks and sorry for bothering you,
Luca Sfarzo