QG_SetCellSpacing
QG_SetCellSpacing(areaRef; xSpacing; ySpacing):error | |||
---|---|---|---|
![]() |
areaRef | Longint | QGrid area reference |
![]() |
xSpacing | Longint | Horizontal cell spacing |
![]() |
ySpacing | Longint | Vertical cell spacing |
![]() |
error | Longint | Error result |
Set the spacing between cells
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameters xSpacing and ySpacing specify the horizontal and vertical cell spacing in pixels respectively. By default the spacing between cells is zero, both horizontally and vertically.
Example
// Set cell spacing to 10 pixels horizontally and vertically C_LONGINT($err) $err:=QG_SetCellSpacing (xGrid;10;10) ASSERT($err=qg_noErr)
Related commands
QG_GetCellSpacing | Get the spacing between cells |