Current Occurrence Row Height (CurOccRowHeight)

Row height of the current occurrence in the Grid widget, in character cells or pixels. Default value is 1 (character cell).

CurOccRowHeight="NumberOfCells | NumberOfPixelspx"

Value Description
>= 0 Number of cells; default is 1
>= 0px Number of pixels

Description

The Current Occurrence Row Height defines the height of a row when it becomes active. The previous active row gets the initial row height, as defined by the Row Height property, or the default row height, which is determined by the largest font that is used in the row.

Setting a different row size for the current occurrence can be useful for displaying data that is too long for one row, or for highlighting the current occurrence.

Setting the Current Row Height

  • When the row height is specified in cells, the height is based on the Uniface Font 0, as specified by the Font0 setting in the .ini file. You can query the Font 0 cell height using $cellinfo.

    To specify the row height in cells, you must set an integer for the number of cells. For example:

    $entityproperties(ORDER_LINES)="CurOccRowHeight=3"

    Setting the row height to 0 resets the row height to its initial value.

  • When the row height is specified in pixels, the minimum height is the height of a cell in Font 0. If you specify a smaller value, it is ignored.

    To specify the row height in pixels, add px after the value. For example:

    $entityproperties(ORDER_LINES)="CurOccRowHeight=50px"

    Setting the row height to 0px resets the row height to its initial value.

Tip: You can query the Font 0 cell height in pixels using $cellinfo.

Removing the CurOccRowHeight property from the property string (as set in the .ini file, or using $entityproperties) resets the height of the rows to the initial height.

Setting the property to an invalid value also resets the row height to the initial value.

Setting in ProcScript

You can set Current Occurrence Row Height dynamically in ProcScript using the $entityproperties function. For example, the following code sets the row height for the ORDER_LINES entity to 3 character cells.

$entityproperties(ORDER_LINES)="CurOccRowHeight=3"

To set the row height in pixels, specify pxafter the value. For example:

$entityproperties(ORDER_LINES)="CurOccRowHeight=50px"

Related Topics