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

Disable "Cancel"-Dialog & threads/callbacks

Forums › TWAIN Classic › Disable "Cancel"-Dialog & threads/callbacks

  • This topic has 5 replies, 5 voices, and was last updated 12 years ago by Thierry.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 24, 2009 at 5:14 pm #22478 Reply
    swa00
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Hi together ,

    i’m new and i welcome all other developer gurus -> “Hello” 🙂

    Here are my questions, maybe someone can help me..

    Given Twain 1.9 SDK

    Questions :

    1) Is there any possibility to “Disable” the Processing Dialog (cancel scanning) ??

    2) Is there any possibility to implement the Aquire into a thread so the app is not “freezing” during scanning process ??

    Thx a lot for your answers

    Stefan 🙂

    March 26, 2009 at 1:30 am #24846 Reply
    zm123
    Participant
    • Topics - 3
    • Replies - 3
    • Total Posts - 6

    It seems the source UI is dialog based win, maybe if you change it into a modeless window the app win will be there without using thread…… It may cause terrible mistakes, haha

    March 27, 2009 at 7:12 am #24847 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    yes to both,.. mostly.

    1) the progress dialog, you can ‘request’ that drivers not show their progress dialogs. read heavily ‘request’, controlled with the bShowProgress parameter many devices that I work with honor the request and do not show their progress dialogs, but as with all things twain – some drivers just don’t play well with others. ymmv

    2) yes. as long as you are using a UiThread (a thread with it’s own message pump – not a worker thread) you shouldn’t have too many problems.

    Usually these are things you must solve when you’re looking for automation with twain – solutions where you are looking to acquire from the command line, from a windows service or from another different computer. In those cases once you solve these first two points you get to solve another nastier problem, ‘How do you make the error dialogs go away’, as while you can request that the progress dialogs not be shown you cannot request that the error dialogs not be shown. The error dialogs for when any number of things happen, attempt to acquire when the device isn’t on, get a paper jam, etc.

    .

    April 13, 2009 at 8:32 pm #24848 Reply
    Thierry
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    @gabe wrote:

    1) the progress dialog, you can ‘request’ that drivers not show their progress dialogs. read heavily ‘request’, controlled with the bShowProgress parameter many devices that I work with honor the request and do not show their progress dialogs, but as with all things twain – some drivers just don’t play well with others. ymmv

    Where do you set this boolean ?

    Actually ShowUI at FALSE should be enough to stop display any dialog boxes from the driver (well in Kodak scanners at least) but it is not enough to stop showing the Fujitsu drivers transfers progress … (of course I can capture the Windows handle and hide it, but well, I’m tired of hacking everything, so if you have a better solution …).

    April 14, 2009 at 1:18 pm #24849 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    Set CAP_INDICATORS to FALSE

    Regards,
    Jim Watters

    **************************************************
    JFL Peripheral Solutions Inc.
    http://www.jflinc.com/
    Your Expert Source of Custom Software and Services
    for TWAIN Applications, Data Sources,
    Peripheral Drivers and Support Software.
    **************************************************

    April 14, 2009 at 2:47 pm #24850 Reply
    Thierry
    Participant
    • Topics - 6
    • Replies - 54
    • Total Posts - 60

    @jimwatters wrote:

    Set CAP_INDICATORS to FALSE

    Regards,
    Jim Watters

    **************************************************
    JFL Peripheral Solutions Inc.
    http://www.jflinc.com/
    Your Expert Source of Custom Software and Services
    for TWAIN Applications, Data Sources,
    Peripheral Drivers and Support Software.
    **************************************************

    Thanks, I will take a look at this … 😉

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Disable "Cancel"-Dialog & threads/callbacks
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.