Home › Forums › TWAIN Classic › Disable "Cancel"-Dialog & threads/callbacks
- This topic has 5 replies, 5 voices, and was last updated 15 years ago by Thierry.
- AuthorPosts
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 🙂
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
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.
.
@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 …).
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.
**************************************************@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 … 😉
- AuthorPosts