Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, November 12, 2012 7:35:50 AM(UTC)

SVR  
SVR

Groups: Registered
Posts: 8


In previous versions LImageViewer::ActionCallBack had nCellIndex as a parameter.
Now after v17.5 the function has moved to the new Cell class and no long has the nCellIndex parameter.

How can I get the cell index?
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, November 13, 2012 6:09:08 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


To find out the index of the cell, you can implement a loop as follows:
for (i = 0; i <Viewer.Cells.Count; ++i)
{
   if(this==Viewer.Cell[i])
   {
      nCellIndex=i;
      break;
   }
}
You can refer to the example from our documentation to know how to construct the callback function. See the following link:
http://www.leadtools.com/help/leadtools/v175/imageviewer/clib/limgvwr/limageviewer__create.htm

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.096 seconds.