困惑了,关于图片的显示顺序问题。
先把相关代码贴下。
ADOQuery1->Close();ADOQuery1->SQL->Text = "select * from simu where Time>"+s+" and ID>2";ADOQuery1->Open();while(!ADOQuery1->Eof) { a=ADOQuery1->FieldByName("Num")->AsString; n = StrToInt(a); if(n == 2){ TGIFImage *DemoGif = new TGIFImage(); DemoGif-> LoadFromFile( "D:\\1.gif "); Image2-> Picture-> Graphic = DemoGif; DoubleBuffered = true; } else if(n == 3){ TGIFImage *DemoGif = new TGIFImage(); DemoGif-> LoadFromFile( "D:\\1.gif "); Image3-> Picture-> Graphic = DemoGif; DoubleBuffered = true; } else{ TGIFImage *DemoGif = new TGIFImage(); DemoGif-> LoadFromFile( "D:\\1.gif "); Image1-> Picture-> Graphic = DemoGif; DoubleBuffered = true; } ADOQuery1->Next(); }