TE Edit Control Java / HTML-JavaScript Help
Product page

TerMarkCells

Set the cell selection flags for the selected text.

boolean TerMarkCell(hWnd, select)
HWND hWnd;Handle of the window to be accessed
int select;Cell selection for this operation:
SEL_ALL: Select the entire table
SEL_CELLS:Select the current cell or all highlighted cells
SEL_COLS: Select the current column or all highlighted columns
SEL_ROWS: Select the current row or all highlighted rows

Description: This function can be called after selecting the table cells to set the cell selection flags (CFLAG_SEL1 and CFLAG_SEL2). You can then use the TerGetCellInfo function to retrieve the cell flags and then test against the CFLAG_SEL1 and CFLAG_SEL2 constants to check if the cell is selected:

TerGetCellInfo(CellId, RowId, PrevCell, NextCell, width,
             border, shading, RowSpan, ColSpan, flags)
if (flags and  (CFLAG_SEL1 or CFLAG_SEL2)) then .. cell
                                           selected.

Return Value: This function returns a TRUE value if successful.