Hi,
How do I get the text in string form from a TPaveText object so that I can manipulate it later?
Thanks.
Hi,
How do I get the text in string form from a TPaveText object so that I can manipulate it later?
Thanks.
TCanvas *c = new TCanvas("c", "c")
TPaveText *p = new TPaveText(0.3, 0.3, 0.6, 0.6)
p->Draw()
p->AddText("first line")
p->AddText("second line")
p->SetLabel("what?")
c->Modified()
p->GetListOfLines()->Print()
p->GetLineWith("first")->Print()
p->GetLine(0)->Print()
p->GetLine(0)->GetTitle()
p->GetLine(0)->SetTitle("wow!")
c->Modified()
p->GetLineWith("second")->Print()
p->GetLine(1)->Print()
p->GetLine(1)->GetTitle()
p->GetLine(1)->SetTitle("another wow!")
c->Modified()
p->GetLabel()
p->SetLabel("why?")
c->Modified()