L_DispContainerSetScaleTagType

#include "ltivw.h"

L_LTIVW_API L_INT L_DispContainerSetScaleTagType(hCellWnd, uType);

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

Parameters

L_HWND hCellWnd

A handle to the window that represents the cell on which the function's effect will be applied.

L_UINT 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

Value Meaning
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

See Also

Functions

Topics

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 21.0.2020.8.21
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Medical Image Viewer C API Help