L_LTIVW_API L_INT L_DispContainerSetCellTag(hCellWnd, uRow, uAlign, uType, pString, uFlags)
Sets a tag on a specific location in a specific cell.
A handle to the window that represents the cell on which the function's effect will be applied.
The number of rows to count before placing the tag.
Value that specifies the origin point from which to count the rows specified in the uRow parameter. For example, if uAlign is DISPWIN_ALIGN_BOTTOMLEFT and uRow is 4, the application will count 4 rows from the bottom and place the tag on that location. Possible values are:
|DISPWIN_ALIGN_TOPLEFT|| Start counting rows from the top of the cell. The tag will be left justified.|
|DISPWIN_ALIGN_LEFTCENTER|| The tag is placed in the center, based on the height of the cell, and is left justified.|
|DISPWIN_ALIGN_BOTTOMLEFT|| Start counting rows from the bottom of the cell. The tag will be left justified.|
|DISPWIN_ALIGN_TOPCENTER|| The tag is placed in the center, based on the width of the cell, and is top justified.|
|DISPWIN_ALIGN_BOTTOMCENTER|| The tag is placed in the center, based on the width of the cell, and is bottom justified.|
|DISPWIN_ALIGN_TOPRIGHT|| Start counting rows from the top of the cell. The tag will be right justified.|
|DISPWIN_ALIGN_RIGHTCENTER|| The tag is placed in the center, based on the height of the cell, and is right justified.|
|DISPWIN_ALIGN_BOTTOMRIGHT|| Start counting rows from the bottom of the cell. The tag will be right justified.|
Value that represents the type of tag to be added. Possible values are:
|DISPWIN_TYPE_USERDATA|| User data tag|
|DISPWIN_TYPE_SCALE|| Scale tag|
|DISPWIN_TYPE_WLCENTERWIDTH|| Window level tag|
|DISPWIN_TYPE_FIELDOFVIEW|| Field of view tag|
|DISPWIN_TYPE_OWNERDRAW|| Owner draw tag|
|DISPWIN_TYPE_FRAME|| Frame tag.|
|DISPWIN_TYPE_RULERUNIT|| The ruler unit.|
|DISPWIN_TYPE_LEFTORIENTATION|| Reserved for future.|
|DISPWIN_TYPE_RIGHTORIENTATION|| Reserved for future.|
|DISPWIN_TYPE_TOPORIENTATION|| Reserved for future.|
|DISPWIN_TYPE_BOTTOMORIENTATION|| Reserved for future.|
|DISPWIN_TYPE_OFFSET|| Image Offset tag.|
|DISPWIN_TYPE_ALPHA|| Alpha value tag.|
String containing a custom tag. This parameter is only used if uType is set to DISPWIN_TYPE_USERDATA.
Flags that determine whether to apply the feature on the one cell only, or more than one cell. This value can only be used when the cell is attached to the hCellWnd by calling the function L_DispContainerInsertCell. Possible values are:
|CELL_APPLYTOTHIS||[0x00000000] Apply the feature to this cell only.|
|CELL_APPLYTOALL||[0x10000000] Apply the feature to all the cells in the Image Viewer.|
|CELL_APPLYTOSELECTED||[0x20000000] Apply the feature to the selected cells in the Image Viewer.|
|CELL_ALL||[0x30000000] Apply the feature to all cells in the Image Viewer.|
|CELL_INV_ALL||[0xcfffffff] For internal use only.|
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
If two tags are written to the same location, the second tag written will overwrite the first tag.
To change the quality of the tag text, call L_DispContainerSetProperties.
Required DLLs and Libraries
For an example, refer to L_DispContainerCreate.