Retreives the size and position of a cell.
Syntax
Size = Send_Message(Ctrl, "OLE.GetCellRect", Cell)
Parameters
| Parameter | Description |
|---|---|
| Cell | Index to a data cell, in the format Field:@FM:Record |
Returns
Size and position of the cell.
Remarks
The GetCellRect method is an easy way to a cell's size and position. The Cell parameter is an index to a single data cell. The data returned is in the same format as OpenInsight's SIZE property:
| Pos | Name | Type | Description |
|---|---|---|---|
| <1> | X | Integer | The cell's x position relative to the edit table's left edge |
| <2> | Y | Integer | The cell's y position relative to the edit table's top edge |
| <3> | Width | Integer | The cell's width |
| <4> | Height | Integer | The cell's height |
There is currently no method to retrieve the size of a header cell. This method gets the sizes of data cells only.
Example
// Get the size of cell (2, 2) Size = Send_Message(Ctrl, "OLE.GetCellRect", 2:@FM:2)