ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 why twain scanner's dialog open behind the main form of my app?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

anbangs

17 Posts

Posted - Sep 05 2022 :  04:17:12  Show Profile  Reply
I have two questions:
1) When I call the acquire method, sometimes the twain dialog box will run behind.
2) When the twain dialog box pops up, click other app on the taskbar to maximize and then return to my app(clike my appicon on the taskbar). The twain dialog box will run behind, causing the program to fail to respond.Other app must be minimized in order for the twain dialog box to appear

my ver is 10.2.0

How to solve the above two problems,thanks!





attach/anbangs/20229541659_TwainBehind.zip
38.94 KB

xequte

7215 Posts

Posted - Sep 05 2022 :  16:39:43  Show Profile  Reply
Hi

Do you see this behavior with our Twain demos too? What type of scanner is it?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

anbangs

17 Posts

Posted - Sep 05 2022 :  19:36:05  Show Profile  Reply
the scanner is Canon DR-M1060
Follow the steps I described and you will understand
the twain demos don't.
my demo is MID form
Go to Top of Page

anbangs

17 Posts

Posted - Sep 06 2022 :  03:44:42  Show Profile  Reply
Is it only supported when the form is fsnormal?
Go to Top of Page

xequte

7215 Posts

Posted - Sep 07 2022 :  00:17:31  Show Profile  Reply
Hi

I'm not seeing that here with 11.3.0 (and cannot see any reason it would be different in 10.2.0). I tested it in an MDI application and called it from an MDI client.

There might be something else going on in the application...



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

anbangs

17 Posts

Posted - Sep 07 2022 :  01:08:25  Show Profile  Reply
can you upload your demo.exe for testing?
Go to Top of Page

xequte

7215 Posts

Posted - Sep 08 2022 :  05:09:29  Show Profile  Reply
Hi

Please download it from:

www.imageen.com/temp/legacyphotoen.zip

Click the "New" button on the left of the toolbar, and then "Button1"


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

anbangs

17 Posts

Posted - Sep 08 2022 :  05:28:59  Show Profile  Reply
Hi
Your demo is normal. Can you paste the code?
Go to Top of Page

xequte

7215 Posts

Posted - Sep 09 2022 :  05:06:57  Show Profile  Reply
Hi

The code is merely:

  ImageEnView1.IO.TwainParams.VisibleDialog := True;
  ImageEnView1.IO.Acquire;


I suspect the issue has been fixed since v10.2.0.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

anbangs

17 Posts

Posted - Sep 13 2022 :  02:34:02  Show Profile  Reply
the same code doesn't work properly on my side. :(

thank you
Go to Top of Page

xequte

7215 Posts

Posted - Sep 13 2022 :  17:07:52  Show Profile  Reply
If you don't want to upgrade at this time, email me and I send you the code changes you'll need to make to ietwain.pas

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

anbangs

17 Posts

Posted - Sep 16 2022 :  03:31:45  Show Profile  Reply
I've emailed you.

thank you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: