cindy13732
Technical User
Borland 6
I want the test executing statement to flash while the test is running. The timer works until the EFCSER_MAIN code is called.
Timer1Timer is not called again until it returns from EFCSER_MAIN.
Tag initialized to 0, Interval to 1000, and Enabled to true
void __fastcall TForm1::ExecuteButtonClick(TObject *Sender)
{
.
.
.
executeFlag = true;
.
.
.
EFCSER_MAIN();
executeFlag = false;
Form1->Caption = "Test Complete ";
.
.
.
}
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if (executeFlag == true)
{
if (Timer1->Tag == 0)
{
Form1->Caption = "Test Executing... ";
Timer1->Tag = 1;
}
else
{
Form1->Caption = "";
Timer1->Tag = 0;
}
}
Any thoughts?
I want the test executing statement to flash while the test is running. The timer works until the EFCSER_MAIN code is called.
Timer1Timer is not called again until it returns from EFCSER_MAIN.
Tag initialized to 0, Interval to 1000, and Enabled to true
void __fastcall TForm1::ExecuteButtonClick(TObject *Sender)
{
.
.
.
executeFlag = true;
.
.
.
EFCSER_MAIN();
executeFlag = false;
Form1->Caption = "Test Complete ";
.
.
.
}
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if (executeFlag == true)
{
if (Timer1->Tag == 0)
{
Form1->Caption = "Test Executing... ";
Timer1->Tag = 1;
}
else
{
Form1->Caption = "";
Timer1->Tag = 0;
}
}
Any thoughts?