LEADTOOLS Support
General
General Questions
How to get cell index in ActionCallBack?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, November 12, 2012 7:30:50 AM(UTC)
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?
#2
Posted
:
Tuesday, November 13, 2012 6:04:08 AM(UTC)
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
LEADTOOLS Support
General
General Questions
How to get cell index in ActionCallBack?
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.