ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IsEmpty / IsEmpty2

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Size 
UserName:
Password:
Mode 
Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List
   
Message 

 

Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Ronald Ruijs Posted - Mar 23 2020 : 17:15:18
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
4   L A T E S T    R E P L I E S    (Newest First)
Ronald Ruijs Posted - Mar 25 2020 : 06:46:28
Hi Nigel,
Thanks for you reply, I wait for v 9.
Regards, Ronald
xequte Posted - Mar 25 2020 : 00:39:32
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
Ronald Ruijs Posted - Mar 24 2020 : 03:37:24
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
yogiyang Posted - Mar 24 2020 : 02:44:19
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