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

egrobler

42 Posts

Posted - Jun 10 2014 :  16:04:50  Show Profile  Reply
Hi
Is there a way to get the object handle (hobj) of the last inserted
object.

Normally one would do something like:
ObjPenColor[IEV_PREVIOUS_INSERTED_OBJECT] := clRed;

But for my purposes I need the actual hobj value.
We have GetObjFromIndex when iterating ObjectsCount.

If there is not a way currently I suggest a function named like:
function GetObjHandleOfPreviousInsertedObject : Integer

Regards
Eric

egrobler

42 Posts

Posted - Jun 10 2014 :  16:10:50  Show Profile  Reply
I suppose I am looking for:

function TImageEnVect.GetObjHandleOfPreviousInsertedObject : Integer;
begin
  Result := fObjHeapCount - 1;
end;
Go to Top of Page

xequte

39052 Posts

Posted - Jun 15 2014 :  19:45:35  Show Profile  Reply
Hi

Sorry, can you clarify in what way you would use it. Because all properties support IEV_PREVIOUS_INSERTED_OBJECT, I'd like to understand your usage).



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