On 4 Aug 97 at 11:46, Robert Loke wrote: > Hi Rooters, > > how can I resize and/or move a pad within a canvas? > 1. With a mouse, just press and hold the left-mouse button and move mouse. 2. From your "CINT command prompt"/macro/C/C++ code. TPad class is supplied with two methods to change the Pad objects: void TPad::SetPad(const Text_t *name, const Text_t *title, Float_t xlow, Float_t ylow, Float_t xup, Float_t yup, Color_t color, Short_t bordersize, Short_t bordermode) void TPad::SetPad(Float_t xlow, Float_t ylow, Float_t xup, Float_t yup) (see http://root.cern.ch/root/html/TPad.html) I guess you need second one. I'd like to call your attention that all "size" parameters are floats and must be normalized (NDC), i.e. they must be >=0.0 and <= 1.0. One cab watch the current parameters of the Pad with Inspect() method and via Status Bar (Select Canvas menu -> Options -> Status Bar) Hope this helps, Valery ================================================================= Dr. Valery Fine Telex : 911621 dubna su ----------- LCTA/Joint Inst.for NuclearRes Phone : +7 09621 6 40 80 141980 Dubna, Moscow region Fax : +7 09621 6 51 45 Russia mailto:fine@main1.jinr.dubna.su Dr. Valeri Faine ------------ Phone: +41 22 767 6468 CERN FAX : +41 22 767 7910 CH-1211 Geneva, 23 mailto:fine@mail.cern.ch Switzerland http://nicewww.cern.ch/~fine
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:20 MET