Re: TButton

Rene Brun (Rene.Brun@cern.ch)
Thu, 17 Jul 1997 14:52:18 +0200


Robert Loke wrote:
>
> Hi!
>
> Defining a button using TButton, a action has to be defined. Does this
> definition has to look like ".x action" or can this action be arbitrary as
> long as this is executable? E.g. can this action consist of a previously
> defined function?
>

The TButton action can be anything that can be executed by
the interpreter: Examples

button->SetMethod("34+78");
button->SetMethod(".x file.C");
button->SetMethod("funct(2)");
button->SetMethod("ntuple->Draw("x","y<0")");

Rene Brun