L_DispContainerSetScaleTagType

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerSetScaleTagType(hCellWnd, uType);

L_HWND hCellWnd;

handle to the cell window

L_UINT uType;

tag type

Sets the current scale overlay text type for the specified cell.

Parameter Description
hCellWnd A handle to the window that represents the cell on which the function's effect will be applied.
uType Flag that indicates the type of the scale overlay text. Possible values are:
Value Meaning
CONTAINER_TAG_SCALE_X [0] The scale value is normalized.
CONTAINER_TAG_SCALE_PERCENTAGE [1] The scale value is percetange.

Returns

SUCCESS The function was successful.
1 An error occurred. Refer to Return Codes.

Comments

To get the scale tag type of the cell, use the L_DispContainerGetScaleTagType function.

To get the scale of cell or sub-cell, use the L_DispContainerGetCellScale function.

To set the scale of cell or sub-cell, use the L_DispContainerSetCellScale function.

To set the properties of the scale action, use the L_DispContainerSetActionProperties function.

To get the properties of the scale action, use the L_DispContainerGetActionProperties function.

To set the scale mode of cell or sub-cell, use the L_DispContainerSetCellScaleMode function.

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: L_DispContainerGetScaleTagType, L_DispContainerSetCellScaleMode, L_DispContainerGetCellScale, L_DispContainerSetCellScale,L_DispContainerCreate, L_DispContainerRemoveCell, L_DispContainerInsertCell, L_DispContainerGetCellCount, L_DispContainerGetCellWindowHandle, L_DispContainerSetCellTag, L_DispContainerSetCellProperties, L_DispContainerAddAction, L_DispContainerSetAction, L_DispContainerGetActionProperties, L_DispContainerRemoveAction, L_DispContainerGetActionCount
Topics: Applying Actions
Image Viewer Functions: Applying Actions

Example

This function changes the built-in scale overlay text format.

L_INT L_DispContainerSetScaleTagTypeExample(HWND hCellWnd) 
{ 
   L_INT nRet = L_DispContainerSetCellTag(hCellWnd, 1, DISPWIN_ALIGN_TOPLEFT, DISPWIN_TYPE_SCALE, NULL, 0); 
   if (nRet != SUCCESS) 
      return nRet; 
   L_UINT uTagType; 
   nRet = L_DispContainerGetScaleTagType(hCellWnd, &uTagType); 
   if (nRet != SUCCESS) 
      return nRet; 
   if (uTagType == CONTAINER_TAG_SCALE_PERCENTAGE) 
      uTagType = CONTAINER_TAG_SCALE_X; 
   else 
      uTagType = CONTAINER_TAG_SCALE_PERCENTAGE; 
   nRet = L_DispContainerSetScaleTagType(hCellWnd, uTagType); 
   return nRet; 
} 

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Medical Image Viewer C API Help