Hi all,
I have a canvas which I am dividing in 2. I draw pad1 and then pad2. after the canvas is drawn, I try to edit pad1. But i am not able to do so. I tried but it didn’t work. I have attached the code as well. What is it that I am missing?
Thanks a lot, Shilpi code.C (6.2 KB)
Hi,
Since you call ‘Divide’ the sub-pads have already been created, so use:[code] c->Divide(2);
// ------------>Primitives in pad: pad1 TPad *pad1 = cd->cd(0) pad1->Range(-12.5,-1271.556,112.5,3814.668); pad1->SetFillColor(0);
…[/code]
Cheers, Philippe.