Wouter Hulsbergen wrote: > > Dear all, > > One can draw overlapping subpads ('primitives') in a TPad. Is it > possible to hide some of these pads, for layer use ? > > I have made an online histogram displayer which cycles between different > sets of histograms and corresponding TPad division. I thought it would > be a waste to create and destroy them all the time. > > Thanks, > Wouter Hi Wouter, You can remove this pad from the list of primitives of its mother pad. If pad is the pointer to the pad you want to hide if mother is the pad containing this pad do: mother->GetListOfPrimitives()->Remove(pad); mother->Modified(); mother->Update(); To show the pad again mother->GetListOfPrimitives()->Add(pad); mother->Modified(); mother->Update(); The next version of Root includes the possibility to define transparent pads and pads with different levels of opacity. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:39 MET