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
 Arrows in imageenvect
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WeiseSoftware

4 Posts

Posted - Jul 02 2019 :  05:27:46  Show Profile  Reply
Hi,
I use the imageenvect component (version 8.3.0) in Delphi 10.2

When I copy (ImageEnVect1.CopyObjectsToBack(True);) a line object with arrows to the background the arrow is cropped. Attached is a screenshot. The frist arrow is copied to the background and the other is the object.

What can I do to avoid this issue?

Regards

David

xequte

4590 Posts

Posted - Jul 02 2019 :  19:46:59  Show Profile  Reply
Hi David

I cannot reproduce that. Can you show me the code used to create the line object?

Also, you should consider transitioning to our new layer functionality:

https://www.imageen.com/help/ImageEn/TImageEnVect%20vs%20TIELayers.html

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

WeiseSoftware

4 Posts

Posted - Jul 03 2019 :  09:51:54  Show Profile  Reply
Hi Nigel

Just create a new delphi project and add an imageenvect component and one button to the form.
In the formcreate event add the following code:


  ImageEnVect1.IO.LoadFromFile('<your picture>');
  ImageEnVect1.MouseInteractVt := [miPutLineLabel];
  ImageEnVect1.ObjEndShape[-1] := iesOutArrow;
  ImageEnVect1.ObjBrushStyle[-1] := bsSolid;


and in the button click event:


  ImageEnVect1.CopyObjectsToBack(True);
  ImageEnVect1.SelAllObjects;
  while ImageEnVect1.SelObjectsCount > 0 do
    ImageEnVect1.RemoveObject(ImageEnVect1.selobjects[0]);


Start the project, draw some arrows and click the button.

Regards

David
Go to Top of Page

xequte

4590 Posts

Posted - Jul 03 2019 :  17:31:16  Show Profile  Reply
Thanks David,

Please email me for a fix.

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

WeiseSoftware

4 Posts

Posted - Jul 04 2019 :  01:56:32  Show Profile  Reply
Hi Nigel,
I can't send you an email.
Errormessage: "You do not have enough posts to email other members. If you feel that you have received this message in error, please contact the forum administrator."

Can you email me?

Regards

David
Go to Top of Page

xequte

4590 Posts

Posted - Jul 04 2019 :  23:42:55  Show Profile  Reply
Hi David

Thanks, I've received your message. Though your registration has actually expired in May, so I'll email just the required changes to ievect.pas.

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

WeiseSoftware

4 Posts

Posted - Jul 05 2019 :  03:56:33  Show Profile  Reply
Hi Nigel,

thank you for the fix. It works perfect.

Regards

David
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: