Re: [ROOT] How to use TGImageMap?

From: Brett Viren (bv@bnl.gov)
Date: Mon May 28 2001 - 15:17:46 MEST


I found one problem: You have a wrong connection (Rt is very quiet
about connection errors).  You need to change:


Connect("OnMouseOver(Int_t)", "MapTest", this, "DoOverRegion(Int_t)");
Connect("DoubleClicked()", "MapTest", this, "DoMapClicked()");

to:

fImageMap->Connect("OnMouseOver(Int_t)", "MapTest", this, "DoOverRegion(Int_t)");
fImageMap->Connect("DoubleClicked()", "MapTest", this, "DoMapClicked()");


However, the OnMouseOver(Int_t) signal still doesn't get to its
handler.  I don't know why.

-Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET