13,826
社区成员
发帖
与我相关
我的任务
分享
TImage *TM[7] = {Image1, Image2, Image3, Image4, Image5, Image6, Image7}
for (int i = 0; i < 7; i++)
{
Application->ProcessMessages(); // 在长时间循环中响应消息
for (int j = 0; j < 7; j++)
{
Application->ProcessMessages(); // 在长时间循环中响应消息
if(j==i)
{
TM[j]->Visible = true;
}else{
TM[j]->Visible = false;
}
}
TM[i]->Left = 115+35*i;
//TM[i]->BringToFront();
Sleep(1000);
}