Wolfgang Korsch wrote: > > Hi, > I try to print some text in my canvas using the following commands: > > sprintf(text," normalized Chisq: %f", chi2); > TPaveLabel Chisq(1050,0.,1070,0.0005, text); > Chisq.SetTextSize(0.2); > Chisq.Draw(); > > That seems to work fine, except that the TextSize doesn't change when > I change the value in SetTextSize. It works fine, when I use > > TPaveLabel Chisq(1050,0.,1070,0.0005, "some text"); > > How can I get around this? > When setting object attributes in a macro or command line, the change will become effective only when the pad/canvas is redrawn. You can force a Redraw of the canvas/pad with pad->Modified() When you type <CR>, Root scans all canvases/pads. Pads that have been deeclared "Modified" are redrawn. This operation is automatic when an attribute is set via the mouse because Root knows in which canvas you are operating. Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:31 MET