Board index » cppbuilder » Why Doesn't This PaintBox Code Work?
Larry Johnso
![]() CBuilder Developer |
Thu, 17 Nov 2005 12:37:54 GMT
Why Doesn't This PaintBox Code Work?
I am using BCB5.0 professional. This problem seems to simple to be
believable. I have a simple test application with two forms. On Form2 there are three PaintBoxes. PaintBox 2 and 3 are set to be invisible by manually setting the visible property to false. Form2 is opened using the button event handler below. When the Form2 opens all three PaintBoxes are visible. I want to use PaintBox 2 and 3 as invisible buffers but this is not possible because they are always visible. Is this a bug? How can I make PaintBox 2 and 3 invisible? Thanks void __fastcall TForm1::Button1Click(TObject *Sender) Form2->Show(); Form2->PaintBox1->Canvas->Brush->Style = bsClear; Form2->PaintBox2->Canvas->Brush->Style = bsClear; Form2->PaintBox3->Canvas->Brush->Style = bsClear; Quote} - |