GetActiveTableCell

int GetActiveTableCell (int panelHandle, int controlID, Point *cell);

Purpose

This function returns the active cell of the specified table control.

Parameters

Input
Name Type Description
panelHandle integer Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel.
controlID integer The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl.
Output
Name Type Description
cell point (passed by reference) A Point structure indicating the row and column of the active cell.

The Point structure is defined as follows:

typedef struct
   {
   int x;
   int y;
   } Point;


The function writes the one-based column index of the active cell into the x field of the structure, and the one-based row index of the active cell into the y field of the structure.

If the table contains zero rows, the function returns 0 as the row index of the active cell, and if the table contains zero columns, the function returns 0 as the column index of the active cell.

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Code Error Message String
xx Success