Loading...

TwainSetHideUI issue

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

TwainSetHideUI issue

Postby ctn » Wed Dec 10, 2008 4:28 pm

I found this information at twainforum.org:

Question:
Hi all.
I have a problem how to disable all the pop-up windows started by twain driver. For example when i start scanning bizness card using NewSoft BizzCard Reader and there is no card a window pop-up with information to input card. How to turn it of ??
Thanks and sorry for my bad english
Back to top
View user's profile Send private message
gabe

Answer:
you can 'request' that a driver not display it's UI with the appropriately named ShowUI parameter in EnableDs. And you can 'request' that process indicators not be displayed with Cap_Indicators if your device supports it.

My experience is that the requests are often overlooked and that MessageBoxes will still clutter your OpenDs, EnableDs & EnableDsUiOnly triplets.
The only solution that I have found is to add a boxEater to your app, which is essentially a cbthook running on a seperate thread watching for dialogs you know would like to close. My solution is to set the hook before any of the 3 triplets I mentioned and to unhook after they complete or when you call CloseDs if it is still enabled. On every window activation I check the window title and all of the child controls against a list that I load of dialogs that should have something done to them. The effect is that you have a training stage where you teach your app what dialogs to do stuff to by intentionally jamming paper, unplugging the device, poring coffee on it (ok, not that one), etc


My question: Is you function "TwainSetHideUI" sets the "ShowUI" parameter in EnableDs?

Thank you
Br,
Toan
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm

Re: TwainSetHideUI issue

Postby Loïc » Wed Dec 10, 2008 5:51 pm

Yes Toan.

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: TwainSetHideUI issue

Postby ctn » Wed Dec 10, 2008 6:21 pm

Ok. Thanks. :)
ctn
 
Posts: 57
Joined: Thu Dec 04, 2008 6:20 pm


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests