Re:

From: Valery Fine (fine@bnl.gov)
Date: Thu Apr 23 1998 - 16:35:29 MEST


On 23 Apr 98 at 14:33, Wei Xie wrote:

> 
> Dear Rooters
> 
> I need your help ! I hope my macro has the following abilities:
> 
>  When clicking one part of window with mouse, a small window will
>  pop up and show the enlarged view of that part. While continuing to
>  click the small window should make the view larger and larger until
>  you're satisfied.
> 
> Any suggestions are warmly welcomed !
> 

  First of all you should read the comment for TPad class 

       (see: http://root.cern.ch/root/html/TPad.html) 

Roughly say you should derive you own class from TObject and supply 
your own ExecuteEvent Method. When mouse will cross your object on 
the screen the ExecuteEvent() of your class will be called, Then it 
is up to you to supply the proper action (for exampl e you may create 
a new TCanvas or change the parameters of the selcted TPad object 
etc)

   Hope this helps,
                          Valery


=================================================================
Dr. Valeri Faine (Fine)
    -------------------          Phone: +1 516 344 7806
Brookhaven National Laboratory   FAX  : +1 516 344 4206
Bldg. 510A /STAR                 mailto:fine@bnl.gov
Upton, New York, 11973-5000      http://nicewww.cern.ch/~fine
USA
                                 
Dr. Valery Fine                  Telex : 911621 dubna su
    -----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region      Fax   : +7 09621 6 51 45
Russia                           mailto:fine@main1.jinr.dubna.su                              



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET