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
 Custom vector shapes
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Arachnid

2 Posts

Posted - Jan 26 2012 :  06:56:10  Show Profile  Reply
Is there a way to insert custom shapes (closed filled polygons) in TImageEnVect? Can't find any example.

Arachnid

2 Posts

Posted - Jan 26 2012 :  08:18:28  Show Profile  Reply
Great, after some studying the source code I understand now how to do this:

//TMyVectObject is derived from TIEExtendedObject
IEVRegisterExtendedObject(TMyVectObject, 'TMyVectObject');
ImageEnVect1.ExtendedObjectToPut := 'TMyVectObject';
imageenvect1.MouseInteractVt := [miPutExtendedObject];

But on the inserting stage it draws a rectangle (MouseMove -> iekEXTENDED -> DrawBoxInserting). What is the best way to replace the paint handler on the inserting stage and draw custom shape?
Go to Top of Page

fab

1310 Posts

Posted - Jan 28 2012 :  01:55:12  Show Profile  Reply
I'm sorry, at the moment custom objects aren't supported. Current implementation isn't fully functional (and undocumented).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: