[ROOT] passing a method through "const char* method"

From: simon (simon@ligo.mit.edu)
Date: Sat May 12 2001 - 03:15:57 MEST


hi there rooters,

i would just like to know how to deal with the argument const char* method that 
you pass to the constructor of a TButton for instance. where do you define the 
said method and how must it be specified so that it can be found in the "current 
scope FILE ?

TButton *b= new TButton("button","???",0.5,0.5, 0.6,0.6);

where should i code the void button_func(void) method so that it can be properly 
called and executed when clicking on a the button and should it be specified 
where i the "???" are?

or else, in a  argument such as ".x tutorials/graph.C" 
what does the x. mean?

please help me, i'm not familiar with passing argument in that format!

thanks



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:24 MEST