I have some trouble with the TBox and the logY mode. When I am in logY mode, and the box is in a certain range, the TBox cannot anymore been selected by the mouse. Is it a well known problem ?
ex:
TH1F *h = new TH1F("h","h",50,-50,50)
h->FillRandom("gaus")
h->Draw()
TBox *b = new TBox(-20,1200,20,200)
b->Draw()
gPad->SetLogy()
Actually I am not using the TBox but a class which herits from TBox. Do you have an exemple of what I do include in the methods Box::DistancetoPrimitive and TBox::ExecuteEvent to add this possibility for my objects ?
I am not sure to understand what you want me to do. For information, I have corrected what was missing: in the method TBox::DistanceToPrimitive, one just need to add :