Hi Jo, see this message and the associated thread. Cheers, Fons. On Tue, 2002-07-30 at 21:31, Jo Schambach wrote: > Forgive me if this question is a FAQ or has been answered before: > > How does one handle mouse events in a custom root application? > Specifically, here is what I would like to do: > I have a canvas with 2 pads, one pad containing a 2d histo, the other a 1d > histo. When the user left clicks (or shift clicks, if left click is already > used) on the 2d histo, I would like to display the projection of the 2d histo > at the mouse location in the 1d histo. So I need a way of getting notified > about the fact and the location of the "left-mouse-click". > Thanks for any help in advance. > > Regards, > > Jo > -- > ******************************************************* > Dr Joachim Schambach > Physics Department, RLM 5.208 -C1600 > University of Texas > Austin, TX 78712, USA > Phone: (512) 471-1303; FAX: (781) 998-5513 > e-mail: jschamba@physics.utexas.edu -- 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:51:02 MET