Does PrgUserCancel work when tapping the Cancel button in Progress
dialogs? I wonder because I sprinkled the code of a lengthy computation
process (60s on a IIIxe) with calls to this macro, but I never get a
true when I tap or hold the stylus on the Cancel button of the Progress
dialog. I then converted all these calls into calls to a UserAbort
function:
Boolean UserAbort( ProgressPtr progress )
{
if ( PrgUserCancel( progress ) )
return true;
else
return false;
}
to conveniently put a breakpoint on the "return true" line, which I
never hit. But if I put a breakpoint on the test, I keep stopping, which
proves I do call this function often.
What can go wrong with something so simple? The Progress dialog works
fine and properly refreshes with computation step strings I pass to it.
--
Luc Le Blanc
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/