Re: TCanvas::HandleInput and TContextMenu

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Thu Oct 14 1999 - 18:35:32 MEST


> Hi rooters!
> 
> 
> One more question concerning histograms and canvas. To catch mouse click in a canvas
> I can use TCanvas::HandleInput. Now I would like to be noticed when my histogram was 
> changed after right mouse button was pressed, context menu was invoked and some action 
> was taken. How can I do this?

  Hmm, ContextMenu calls directly the method of the object you clicked on.

file://______________________________________________________________________________
void TContextMenu::Action(TObject *object, TMethod *method)
{
   // Action to be performed when this menu item is selected.
   // If the selected method requires arguments we popup an
   // automatically generated dialog, otherwise the method is
   // directly executed.

> 
> Best regards,
> Anton
> 



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