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
 IsEmpty / IsEmpty2
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 23 2020 :  17:15:18  Show Profile  Reply
Hello,

When dropping a TImageEnView on a form, I would expect IsEmpty to return True when form is displayed.

However IsEmpty and IsEmpty2 both return False.

Aa I missing something?

Regards,

Ronald

yogiyang

India
725 Posts

Posted - Mar 24 2020 :  02:44:19  Show Profile  Reply
That is because by default ImageEn will contain an image which is of gray color.

Add imageenview1.blank to your forms create event.

This will solve your problem.


Yogi Yang
Go to Top of Page

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 24 2020 :  03:37:24  Show Profile  Reply
Hi Yogi,

Thanks for the esplanation, although it sound to contra-intuitive to empty the control before anything is loaded.

Any special reason why a gray image is loaded at component creation (which disturbs ImageEn's own Action OnUpdate handlers)?

Regards, Ronald
Go to Top of Page

xequte

38127 Posts

Posted - Mar 25 2020 :  00:39:32  Show Profile  Reply
Hi Ronald

Yes, this is counter intuitive. By default, IsEmpty2 should return true at start up (until image is loaded or manipulated), but there is a bug in v8.7.* in the Clear method.

You can email me for a 9.0.0 pre-release if you like (final version out in a few weeks).



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

Ronald Ruijs

Netherlands
24 Posts

Posted - Mar 25 2020 :  06:46:28  Show Profile  Reply
Hi Nigel,
Thanks for you reply, I wait for v 9.
Regards, Ronald
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: