- Code: Select all
button click:
create window
execute thread
show window modal
window cancel button:
thread cancel
work event:
if cancellation pending then accept cancellation, display aborted and exit
execute slow function here
But this one can't display status aborted immediately, also after next button click component tell me that is already run.
How to fix it?
Also some cancel event or something similar will be nice, aren't they?