MechanicalBoy
Technical User
I have two buttons on the form (butt1 and butt3).
when i click on butt1 i start the following fuction :
void __fastcall TForm1::butt1Click(TObject *Sender)
{
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]"
;
IMG->SetBounds(10,10,60,60);
IMG->Canvas->Brush->Color = clBlue;
IMG->Canvas->FillRect(Rect(0,0,IMG->Width,IMG->Height));
IMG->Visible = true;
}
but why the image (IMG) is not visible ???
Thanks for any help
RafalP
when i click on butt1 i start the following fuction :
void __fastcall TForm1::butt1Click(TObject *Sender)
{
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]"
IMG->SetBounds(10,10,60,60);
IMG->Canvas->Brush->Color = clBlue;
IMG->Canvas->FillRect(Rect(0,0,IMG->Width,IMG->Height));
IMG->Visible = true;
}
but why the image (IMG) is not visible ???
Thanks for any help
RafalP