TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Catch the Cancel on scan progress bar. Win7/Twain1.9

Forums › TWAIN Classic › Catch the Cancel on scan progress bar. Win7/Twain1.9

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 4 months ago by MarkM.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 21, 2014 at 12:24 pm #22987 Reply
    solo.dmitry
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    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.

    December 2, 2014 at 6:03 pm #26238 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    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…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Catch the Cancel on scan progress bar. Win7/Twain1.9
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.