Re: [ROOT] which button ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 20 2000 - 08:50:31 MEST


Patrick,
We have plenty of examples in the code. Look for example at:

http://root.cern.ch/root/html/src/TBox.cxx.html#TBox:ExecuteEvent

Rene Brun

Patrick Dupre LCMI wrote:
> 
> Hello,
> 
> After I did:
> ::HandleButton (Event_t *event) {
>   if (event -> fType == kButtonPress) {
> 
> I would like to know which button has been pressed,
> 
> So I guess I need to play with :
> ::HandleInput (EEventType button, Int_t px, Int_t py) {
> 
> but how ?
> 
> Thank.
> 
> --
> ---
> ==============================================================================
>    Patrick DUPRE                |   |   Tel:  (33 4) 76-88-78-51
>    CNRS/LCMI (GHMFL)            |   |   Fax:  (33 4) 76-85-56-10
>    25 Rue des Martyrs, BP 166   |   |   http://eschyle.polycnrs-gre.fr
>    F-38042 GRENOBLE Cedex 09    |   |   email: pdupre@polycnrs-gre.fr
> ==============================================================================



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET