ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEV_PREVIOUS_INSERTED_OBJECT

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
egrobler Posted - Jun 10 2014 : 16:04:50
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

2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 15 2014 : 19:45:35
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
egrobler Posted - Jun 10 2014 : 16:10:50
I suppose I am looking for:

function TImageEnVect.GetObjHandleOfPreviousInsertedObject : Integer;
begin
  Result := fObjHeapCount - 1;
end;