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
 "IEBitmap invalid" when invoking Proc.CanPasteFromClipboard of a TImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MarkusK

Germany
2 Posts

Posted - Apr 09 2024 :  05:27:42  Show Profile  Reply
I have a TImageEnMView and a TImageEnView attached to it via the AttachedImageEnView property.
Both are empty.

I want to provide the capability to paste an image from clipboard, so I call ImageEnMView1.Proc.CanPasteFromClipboard to check if there's any image content on the clipboard.
In previous versions, this worked fine.
Since installing version 13.1.0, I get an EIEException "IEBitmap invalid"

xequte

38608 Posts

Posted - Apr 09 2024 :  23:15:54  Show Profile  Reply
Hi

I'm afraid there is an issue in 13.1.0, you can email me for a fix.

Alternatively, you can check the control is not empty before accesing Proc, e.g.

canCopy := ( ImageEnMView1.ImageCount > 0 ) and ( ImageEnMView1.Proc.CanPasteFromClipboard  );


There will be an official release later in April.

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

MarkusK

Germany
2 Posts

Posted - Apr 10 2024 :  02:28:12  Show Profile  Reply
Hi Nigel

Yes, I've noticed that ImageCount > 0 would remove the exception. However, this means I could only add an image from clipboard if there's already at least one image in the list.
I suppose your fix will take that into account too?
Go to Top of Page

xequte

38608 Posts

Posted - Apr 10 2024 :  02:42:43  Show Profile  Reply
Hi

Yes, it is a complete fix.

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