TwainShowSetupDialogSource()

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
kamichi
Posts: 8
Joined: Tue Apr 27, 2010 8:37 am

TwainShowSetupDialogSource()

Post by kamichi » Wed May 19, 2010 9:39 am

If we run scanner setup window by metod TwainShowSetupDialogSource.
Whether there is a possibility to learn that the button ….ок.cancel etc. has been pressed

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: TwainShowSetupDialogSource()

Post by Loïc » Wed May 19, 2010 2:29 pm

Just call the TwainUserClosedSource method. If returned value is True: user pressed cancel button.

Kind regards,

Loïc

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: TwainShowSetupDialogSource()

Post by edlemus » Sat May 07, 2011 1:28 am

Hi,

It seems to me that it returns true whether I press cancel or ok.
Is there anyway to know which one has been pressed?

Edson Lemus

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: TwainShowSetupDialogSource()

Post by Loïc » Sat May 07, 2011 10:34 am

Hi Edson,

Maybe your driver doesn't return this information.

Which scanner do you use ?

Loïc

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: TwainShowSetupDialogSource()

Post by edlemus » Sat May 07, 2011 4:58 pm

Hi,

Currently I'm using a Canon DR-3010C.
But anyway, I'll try not to rely my app on this behavior. Thanks.

Edson

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests