Which version of ROOT are you using? Cheers, Fons. On Wed, 2002-02-20 at 17:38, Colley, Tony wrote: > Fons, > > Thanks for the quick response. > > I made the change you suggested but I still get the same error message and > monitorClose() is never called. (I added an output statement to make sure I > was calling the new version of the code... the new output message appears, > but so does the old error message.) > > Any other suggestions? > > Cheers, > Tony > > > -----Original Message----- > From: Fons Rademakers [mailto:Fons.Rademakers@cern.ch] > Sent: Wednesday, February 20, 2002 11:29 > To: Colley, Tony > Cc: 'roottalk@pcroot.cern.ch' > Subject: Re: [ROOT] Error in <TQObject::CheckConnectArgs> slot ... does > not exist > > > Hi Tony, > > try: > rc->Connect("CloseWindow()", "DvatCanvas", this, "monitorClose()"); > > this way you tell the system to use the DvatCanvas::monitorClose() slot > for "this" instance of DvatCanvas. > > Cheers, Fons. > > > > On Wed, 2002-02-20 at 17:13, Colley, Tony wrote: > [edited to relieve strain on mail servers around the world] > > > > TRootCanvas *rc = (TRootCanvas*)m_canvas->GetCanvasImp(); > > rc->Connect("CloseWindow()", 0, 0, "monitorClose()"); > > > > return; > > } > > > > // FUNCTION TO MONITOR CLOSING OF CANVAS > > void DvatCanvas::monitorClose() > > { > > cout << "DvatCanvas::monitorClose" << endl; > > } > > > > -------- END OF CODE EXCERPTS -------------- > [edited more] > > > > Anyway, everything works fine... the canvas is created, stuff is drawn on > > it, the user can interact normally with the canvas and its objects... > except > > when I call Connect() I get the message: > > > > Error in <TQObject::CheckConnectArgs> slot monitorClose does not exist > > > > And, of course, monitorClose() is not called when the user closes the > > canvas. > > > > I tried specifying "DvatCanvas::monitorClose()" in the Connect call, but > > that didn't make any difference. > > > > Help! > > > > Tony Colley > > ITT Industries A/CD > > Fort Wayne, IN USA > > Tony.Colley@itt.com > -- > Org: CERN, European Laboratory for Particle Physics. > Mail: 1211 Geneve 23, Switzerland > E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 > WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480 > > ************************************ > If this email is not intended for you, or you are not responsible for the > delivery of this message to the addressee, please note that this message may > contain ITT Privileged/Proprietary Information. In such a case, you may not > copy or deliver this message to anyone. You should destroy this message and > kindly notify the sender by reply email. Information contained in this > message that does not relate to the business of ITT is neither endorsed by > nor attributable to ITT. > ************************************ -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET