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
 shape
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - Mar 19 2019 :  15:14:31  Show Profile  Reply
The manual says:
ImageEnView1.CurrentLayer.Shape := iesExplosion;

but shape is not a component of currentlayer. What should i do ?
Best

xequte

38222 Posts

Posted - Mar 19 2019 :  20:53:40  Show Profile  Reply
Hi

You need to typecast the the layer. Only TIEShapeLayer supports shapes.

e.g.

ImageEnView1.LayersAdd( ielkShape );
If ImageEnView1.CurrentLayer is TIEShapeLayer then
  TIEShapeLayer( ImageEnView1.CurrentLayer ).Shape := iesExplosion;


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

pierrotsc

USA
497 Posts

Posted - Mar 20 2019 :  08:50:30  Show Profile  Reply
Ok, you should then modify the help as every example shows ImageEnView1.CurrentLayer.Shape := iesExplosion;

Best
Go to Top of Page

xequte

38222 Posts

Posted - Mar 21 2019 :  17:58:50  Show Profile  Reply
Thanks, I have updated the documentation.

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