Skip to main content

rectOfCell

Type​

property

Summary​

Get the rect of a cell in a PolyGrid.

Syntax​

get the rectOfCell of widget

Description​

Use the rectOfCell property to get the rect of a cell in a PolyGrid.

Before calling the rectOfCell property, you must point to the cell for which you want to get the rect. This is done with the pgInternalPointer property.

Examples​

on mouseUp
local tRect

# The following code shows how to get the rect of the fifth cell of the first column.
set the pgInternalPointer of widget "PolyGrid" to "1,5" --> Column 1, Row 5
put the rectOfCell of widget "PolyGrid" into tRect
end mouseUp