Author |
Topic |
|
Ronald Ruijs
Netherlands
24 Posts |
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 |
|
yogiyang
India
725 Posts |
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 |
|
|
Ronald Ruijs
Netherlands
24 Posts |
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 |
|
|
xequte
38127 Posts |
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
Netherlands
24 Posts |
Posted - Mar 25 2020 : 06:46:28
|
Hi Nigel, Thanks for you reply, I wait for v 9. Regards, Ronald |
|
|
|
Topic |
|