what i want to do: button click, timer will enable, images will appear
what i get: images starts to appear when i run the program without button click
help~~~
void __fastcall TForm1::Button15Click(TObject *Sender)
{
k=0;
Timer3->Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Timer3Timer(TObject *Sender)
{
if (!FileExists(StringToOleStr("c:\\FYP_Images\\Foreground\\"+IntToStr(k)+".jpg")))
{
Timer3->Enabled=false;
k=0;
return;
}
ImageEnView13->IO->LoadFromFile("c:\\FYP_Images\\Foreground\\"+IntToStr(k)+".jpg");
k++;
}