T O P I C R E V I E W |
Arachnid |
Posted - Jan 26 2012 : 06:56:10 Is there a way to insert custom shapes (closed filled polygons) in TImageEnVect? Can't find any example. |
2 L A T E S T R E P L I E S (Newest First) |
fab |
Posted - Jan 28 2012 : 01:55:12 I'm sorry, at the moment custom objects aren't supported. Current implementation isn't fully functional (and undocumented). |
Arachnid |
Posted - Jan 26 2012 : 08:18:28 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? |