Hi Rene, The problem is the following. The first time you call gPad->GetFrame(), a frame does not exist at this point. It is created by GetFrame itself and TPad::GetFrame also sets the default attributes for the frame, including the border mode. If you replace the line: cout << "bordermode is " << gPad->GetFrame()->GetBorderMode() << endl; by TFrame *frame = gPad->GetFrame(); cout << "bordermode is " << frame->GetBorderMode() << endl; frame->SetBorderMode(0); etc, the macro will work correctly. Rene Brun Rene Scholte wrote: > > Part 1.1.1 Type: Plain Text (text/plain) > Encoding: 7bit > > Name: testje_frame.c > testje_frame.c Type: Plain Text (text/plain) > Encoding: 7bit
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:33 MET