Re: TCanvas::HandleInput and TContextMenu was not about how to pick object!

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Thu Oct 14 1999 - 20:05:28 MEST


> Hi!
> 
> Perhaps there is a kind of missunderstanding here. Let's see
> 
> 1. I click right button on a TCanvas. 
> This I can handle with TCanvas::HandleInput but I don't need it.
> 2. TCanvas calls TContextMenu
> This I still can handle in TCanvas::HandleInput
> 3. I click OK in context menu. Let's assume it's about TH1
> 4. Context menu executes TContextMenu::Action(TObject *object, TMethod *method)
> for my TH1
> 
> And this is what I am asking about. How can I know within my program that
> TContextMenu::Action was called for my TH1?
> 
> It is not in "how to pick objects" which I had a pleasure to read before sending
> questions to roottalk.

   As I said I see no ease way to catch this.
   One can image a special separate list within TContextMenu keeping the names of the "special objects"
   and "special events".  There are other solutiuons too, but it is a separate talk.

   From another hand from your message it is not clear why do you want all this mess ?
   May be your real problem can be solved another way and simpler.

                    Valery



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:40 MET