Index: trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc	(revision 2896)
+++ trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc	(revision 2897)
@@ -805,4 +805,28 @@
 // --------------------------------------------------------------------------
 //
+// This function was connected to all created canvases. It is used
+// to redirect GetObjectInfo into our own status bar.
+//
+// The 'connection' is done in AddTab
+//
+void MStatusDisplay::EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected)
+{
+    //  Writes the event status in the status bar parts
+    if (!selected)
+        return;
+
+    TCanvas *c = (TCanvas *)gTQSender;
+
+    TVirtualPad* save=gPad;
+
+    gPad = c->GetSelectedPad();
+
+    SetStatusLine2(selected->GetObjectInfo(px,py));
+
+    gPad=save;
+}
+
+// --------------------------------------------------------------------------
+//
 // Adds a new tab with the name 'name'. Adds a TRootEmbeddedCanvas to the
 // tab and returns a reference to the corresponding TCanvas.
@@ -834,4 +858,10 @@
     if (TestBit(kNoContextMenu))
         c.SetBit(kNoContextMenu);
+
+    // Connect all TCanvas::ProcessedEvent to this->EventInfo
+    // This means, that after TCanvas has processed an event
+    // EventInfo of this class is called, see TCanvas::HandleInput
+    c.ConnectToClass("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)",
+                     "MStatusDisplay", this, "EventInfo(Int_t,Int_t,Int_t,TObject*)");
 
     // layout and map new tab
Index: trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MStatusDisplay.h	(revision 2896)
+++ trunk/MagicSoft/Mars/mbase/MStatusDisplay.h	(revision 2897)
@@ -196,4 +196,6 @@
      Bool_t CheckTabForCanvas(int num) const;
 
+     void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected);
+
      ClassDef(MStatusDisplay, 0)   // Window for a status display
 };
