Problem with TExec()

Hello,

is there anybody who can help me with my problem with TExec()?
I have my GUI implemented in one class. And I want to handle mouse events by calling memeber function of my class. So far I was able to discover TExec() method, but the examples show usage by calling root script or a function (global). THere is no example how to call a memeber function of a class from within the same class.

So if I do from within my class:

  TExec *ex = new TExec("ex","Locate()");
  fGraph->GetListOfFunctions()->Add(ex);

And function Locate() is global (doesn’t belong to my class) everything works. But I cannot process the event the way I want because I don’t have access to variables in my class… is there any way around this restriction?

thank you
michal

See $ROOTSYS/tutorials/exec1.C for an example.
Cheers,
Philippe.