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
 ImageEnMView.OnAcquireBitmap + AttachedImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

122 Posts

Posted - May 09 2021 :  04:28:06  Show Profile  Reply
Hi,

I got ImageEnView attached to an ImageEnMView component and use the ImageEnMView.OnAcquireBitmap event to correct a scanned image. The (not selected) thumbnail appears in ImageEnMView but the image won't be shown automatically in ImageEnView. Only after selecting the thumbnail manually in ImageEnMView the image is shown correctly in the ImageEnView component.

Is there a way to automatically select the image after the OnAcquireBitmap event in order to automatically load it in ImageEnView?

Al

aleatprog

122 Posts

Posted - May 09 2021 :  06:33:32  Show Profile  Reply
Solved with TImageEnMView.OnCreateImage event:

ImageEnMView.Deselect;
ImageEnMView.SelectImage(idx);

Al
Go to Top of Page

xequte

38173 Posts

Posted - May 09 2021 :  19:47:43  Show Profile  Reply
Hi Al

Yes, I personally think it should automatically select the newly acquired bitmap, but that decision was made long ago, so changing it now would adversely affect behavior for other users.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: