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
 Annotation Index problem.

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
rswyman@docuxplorer.com Posted - Feb 13 2017 : 08:38:01
Hi All,

After adding new annotations to an image I would like to navigate through the selected object list and acquire the objects ID. Some objects return a -1 GetObjFromIndex. Can someone explain why?



for i := 0 to ImageEnVect.SelObjectsCount -1 do 
  hObj := ImageEnVect.GetObjFromIndex(ImageEnVect.SelObjects[i]);

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 13 2017 : 15:47:12
Hi

Sorry, this is non-obvious, but SelObjects returns an hobj, so you should call as follows:

for i := 0 to ImageEnVect.SelObjectsCount -1 do 
  hObj := ImageEnVect.SelObjects[i];


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com