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
 Annotation Index problem.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - Feb 13 2017 :  08:38:01  Show Profile  Reply
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]);

xequte

39052 Posts

Posted - Feb 13 2017 :  15:47:12  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: