Home › Forums › TWAIN Classic › Catch the Cancel on scan progress bar. Win7/Twain1.9
- This topic has 1 reply, 2 voices, and was last updated 9 years, 3 months ago by MarkM.
- AuthorPosts
Hello All.
I use TW_USERINTERFACE.ShowUI = False.
I want to get moment when user press Cancel button on progress bar dialog. It seems that in this case I never khow in my program that the started scan process will never ends.If the application sets TW_USERINTERFACE.ShowUI to 0 when calling MSG_ENABLEDS, then a “Cancel” button on the progress window should result in one of two outcomes:
– the current DAT_IMAGE*XFER should end with TWRC_CANCEL (aborting the current transfer, appropriate for flatbed scanners)
OR
– the next MSG_ENDXFER should return TW_PENDINGXFERS.Count == 0 (finishing the current transfer, but disallowing any more, appropriate for scanners with paper feeders)
If you’re not getting one of these two outcomes, please contact the scanner vendor for an explanation…
- AuthorPosts