This document covers the following topics:
enables you to inquire which cell is at a particular pixel offset within the table. This is particularly useful for determining the cell for which a context menu was invoked, in which case the position specified should be that returned by the INQ-CLICKPOSITION Action used within the context menu's BEFORE-OPEN Event.
Name/Data Type | Explanation |
---|---|
HANDLE OF TABLE | Input
Specifies a Table Control. |
X-Position (I4) | Input
Specifies the x-axis position in pixels relative to the top-left hand corner of the table. |
Y-Position (I4) | Input
Specifies the y-axis position in pixels relative to the top-left hand corner of the table. |
Row Index (I4) | Output
The row corresponding to the specified y-axis position, or 0 if outside the range of any row. |
Column Index (I4) | Output
The column corresponding to the specified x-axis position, or 0 if outside the range of any column. |
Response (I4) | Output
Natural error (if applicable). |
PROCESS GUI ACTION TABLE-INQUIRE-CELL WITH #TBL-1 #X-POSITION #Y-POSITION #ROW #COLUMN GIVING #RESPONSE