Hi Reiner, I don't think that you should derive a class from TFrame to do this. I suggest to create an object MyFrame *frame and do frame->Draw() after having drawn your TGraph(s). Your class MyFrame should have a function MyFrame::DistancetoPrimitive implemented calling the TFrame ::DistancetoPrimitive. MyFrame does not need any other function implemented. Rene Brun the alraedy existing TFrameReiner Rohlfs wrote: > > Hi ROOT team > > I would like to add an item in the TFrame menu (right mouse button) of a > TGraph. > I know, I have to derive my class from TFrame and add the function to this > derived class. But how can I integrate the derived class with my function into > the TGraph object or TPad object? > > Thanks Reiner.
This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:23 MEST