LImageViewer::GetCellTag

#include "ltwrappr.h".

L_INT LImageViewer::GetCellTag(nCellIndex, uRow, uAlign, pTagInfo, uFlags)

L_INT nCellIndex;

/* index of the cell */

L_UINT uRow;

/* row index */

L_UINT uAlign;

/* flag */

DISPCELLTAGINFO * pTagInfo;

/* pointer to a structure to be updated */

L_UINT uFlags;

/* reserved for future */

Retrieves the cell tag information.

Parameter

Description

nCellIndex

A zero-based index of the cell, which contains the tag (overlay text). Pass -2 to retrieve the tag in the selected cell.

uRow

The number of rows to count before reaching the Sub-cell tag to be retrieved.

uAlign

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:

 

Value

Meaning

 

DISPWIN_ALIGN_TOPLEFT

[0x0000] Start counting rows from the top of the cell. The tag will be left justified.

 

DISPWIN_ALIGN_LEFTCENTER

[0x0001] Place the tag in the center, based on the height of the cell The tag will be left-justified.

 

DISPWIN_ALIGN_BOTTOMLEFT

[0x0002] Start counting rows from the bottom of the cell. The tag will be left justified.

 

DISPWIN_ALIGN_TOPCENTER

[0x0003] Place the tag in the center, based on the width of the cell. The tag will be top-justified.

 

DISPWIN_ALIGN_BOTTOMCENTER

[0x0004] Place the tag in the center, based on the width of the cell. The tag will be bottom-justified.

 

DISPWIN_ALIGN_TOPRIGHT

[0x0005] Start counting rows from the top of the cell. The tag will be right justified.

 

DISPWIN_ALIGN_RIGHTCENTER

[0x0006] Place the tag in the center, based on the height of the cell. The tag will be right-justified.

 

DISPWIN_ALIGN_BOTTOMRIGHT

[0x0007] Start counting rows from the bottom of the cell. The tag will be right justified.

pTagInfo

Pointer to a DISPCELLTAGINFO structure that provides information about the tag specified using the uRow and uAlign parameters.

uFlags

Reserved for future use. Pass 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

If you are planning to retrieve the text, be sure to allocate enough space to hold the tag text.

This function retrieves the Cell tag. The cell tag is the tag that appears on all the frames in the cell. You can create a cell tag using the LImageViewer::SetCellTag function.

To create a tag that appears only on the desired frame, use the LImageViewer::SetSubCellTag 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:

LImageViewer::EditCellTag, LImageViewer::SetCellTag, LImageViewer::DeleteSubCellTag, LImageViewer::EditSubCellTag, LImageViewer::SetSubCellTag, LImageViewer::GetSubCellTag, LImageViewer::Create, LImageViewer::RemoveCell, LImageViewer::InsertCell, LImageViewer::GetCellCount, LImageViewer::SetCellProperties, LImageViewer::GetCellProperties, Class Members

Topics:

Image Viewer Cells

 

Window Control/Image Viewer Functions: Image Viewer Cells

Example

For an example, refer to LImageViewer::BeginUpdate.