Hi,
Is it possible to fix the parameter of the method we want to call in the TClassMenuItem ctor ?
For instance I’d like to connect several menu items to the same method, but with fixed (and predefined) values of the parameters :
new TClassMenuItem(TClassMenuItem::kPopupUserFunction,cl,
“test no 3”,“MyMethod”,object,“int=3”,-1,KTRUE);
new TClassMenuItem(TClassMenuItem::kPopupUserFunction,cl,
“test no 4”,“MyMethod”,object,“int=4”,-1,KTRUE);
void MyClass::MyMethod(Int_t par);
Regards,