Hi Vladimir. Because TPave objects (and objects deriving from TPave) have their master coordinate system in NDC, one cannot use the TBox functions SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC. I have added this important remark in all TPave , TPaveText, etc constructors. Rene Brun Vladimir Pechenov wrote: > > Hi, > > I need in resizing of TPaveText but I can't make it: > > root [0] cn=new TCanvas("c","c") > root [1] pv=new TPaveText(0.1,0.1,0.2,0.2) > root [2] pv->Draw() > root [3] pv->ls() > TPaveText X1= 0.100000 Y1=0.100000 X2=0.200000 Y2=0.200000 TPave > root [4] pv->SetY2(0.5) > root [5] pv->ls() > TPaveText X1= 0.100000 Y1=0.100000 X2=0.200000 Y2=0.500000 TPave > root [6] cn->Modified() > root [7] pv->ls() > TPaveText X1= 0.100000 Y1=0.100000 X2=0.200000 Y2=0.200000 TPave !!! > > For TBox it works, for TPave, TPaveText and TPaveLabel it doesn't work. > > Vladimir.
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET