Hi,
would it be possible to expand the ability of the function TPad::BuildLegend, which currently automagically generates a TLegend for any object in the pad which inherits from TAttLine, TAttMarker, TAttFill ?
I presume the inheritance checking is to prevent the builder from adding eg the TFrame etc which are also pad primitives.
But the problem is that THStack and TMultiGraph do not inherit from TAttLine, TAttMarker, TAttFill. So if you call BuildLegend on a TPad containing one of those types of objects then it doesn’t work. Of course, the irony is that is exactly the kind of object you would want an automatic legend builder for since it can contain many objects that is sometimes inconvenient to write legend code for !
cheers
Peter
ps - I wasn’t sure that this was the correct forum for feature requests