Retreives the size and position of a cell.

Syntax

Size = Send_Message(Ctrl, "OLE.GetCellRect", Cell)

Parameters

ParameterDescription
CellIndex 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:

PosNameTypeDescription
<1>XIntegerThe cell's x position relative to the edit table's left edge
<2>YIntegerThe cell's y position relative to the edit table's top edge
<3>WidthIntegerThe cell's width
<4>HeightIntegerThe 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)
  • No labels