Hi Dmitri, You can set the current pad by clicking the middle button. It is out of question to set the current pad to the pad where you have the mouse focus. If you want something like that, you must derive your own TCanvas and implemented the HandleInput function. Rene Brun Dmitri Litvintsev wrote: > > Hi Rooters, > > I've discovered the following: > > - I open two canvases (canvas1 and canvas2) > - mouse points to canvas1 'drawable' area. > - I move cursor from canvas1 to the 'menu bar' of the > second canvas (canvas1) not 'touching' its 'drawable' area > > now the focus in the second window - I choose 'Edit' -> 'Clear pad' > and the picture disappears from the FIRST canvas (canvas1). That > is apparently gPad is not redefined. > > Would you suggest the easiest way to redefine gPad as soon as > the window, containing TPad, gets focus? > > I understand that the window should be first checked for the presense > of TPad in it (since not every window has TPad). > > Dmitri Litvintsev > > /----------------------------------------------------------\ > | Tel: (630) 840 5005 | > | FAX: (630) 840 2968 | > | office: 169-E CDF Trailers | > | E-mail: litvinse@fnal.gov | > \----------------------------------------------------------/
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET