LImageViewer::RepositionCell

#include "ltwrappr.h"

L_INT LImageViewer::RepositionCell (nCellIndex, nTargetCellIndex, uFlags);

L_INT nCellIndex;

/* index of a cell */

L_INT nTargetCellIndex;

/* the new index of the cell */

L_UINT uFlags;

/* reserved for future use */

Sets the position of the specified cell, based on the index of the cell. This function is available only in the Medical Imaging Suite toolkits.

Parameter

Description

nCellIndex

A zero-based index of the cell for which to set the position.

nTargetCellIndex

A zero-based index of the new cell position.

uFlags

Reserved for future use. Must be zero.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. To get extended error information, call GetLastError, and refer to Return Codes.

Comments

The row and column numbers obtained by this function are relative to the first cell in the container.

Required DLLs and Libraries

LTIVW

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LImageViewer::Create, LImageViewer::RemoveCell, LImageViewer::InsertCell, LImageViewer::GetCellCount, LImageViewer::GetWindowHandle, LImageViewer::SetCellTag, LImageViewer::SetCellProperties, LImageViewer::GetCellProperties, LImageViewer::GetCellPosition, LImageViewer::GetCellBitmapList, LImageViewer::GetCellBounds, LImageViewer::FreezeCell, LImageViewer::SetBounds, LImageViewer::SelectCell, LImageViewer::IsCellSelected, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

// This function shuffle the order of the cells
void RepositionCellExample(LImageViewer& ImageViewer) 
{
   L_INT nI, nCount; 
   
   // Get Cells Count
   nCount = ImageViewer.GetCellCount(0) ; 
   
   srand((L_INT)GetCurrentTime());
   
   // shuffles all the cells
   for (nI = 0; nI < nCount; nI++)
      L_INT nRet = ImageViewer.RepositionCell(nI, (rand() % nCount), 0); 
}