CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a Cancel button in a long process



Hello Frank Wang,

FW> Hi Gurus,

FW>    In a long process which involvs purely file i/o I'd like to provide
FW> a Canel button so that users can abort the process at any time,
FW> could somebody provide me with a simple sample or ideas?
FW> thanks.

FW> Frank

Try something like this:

for(.....
{
....
if(Canceling)return;
Application->ProcessMessages();
....
}

Button Cancel - OnClick:
....
Canceling=true;
....


Best regards from RUSSIA->Vladivostok,   =;-)
 ARG               mail me to: arg.mail@usa.net
[ Drink PEPSI & You Life Stand Much Better ]





W Komornicki's Home Page | Main Index | Thread Index