我动态创建了一些TShape
个对象(图片上的方块),现在我想将这些对象发送到后台。圆圈必须在顶部。我怎么能这样做?
void TForm1::spawn_candy()
{
for (int i = 1;i<=runda;i++)
{
candy1[0] = new TShape(candy);
p_wys = (rand()%90);
p_szer = (rand()%114);
candy1[0]->Top = (p_wys*5)+60;
candy1[0]->Left = p_szer*5;
Label2->Caption = candy1[0]->Left;
candy1[0]->Parent = Form1;
candy1[0]->Width = 30;
candy1[0]->Height = 30;
}
}