currentRowAttrs (EGL system variable)

You can use the consoleLib.currentRowAttrs system variable to hold display characteristics that apply to each row of a screen array as long as the cursor is in that row. For more information about screen arrays, see Using an array dictionary in Console UI.

You can set the following properties for the consoleLib.currentRowAttrs variable: For more information, see the topics for the individual properties.

Type: PresentationAttributes

Example

The following example shows ways to set the values of the properties for the variable. The first uses dot syntax:
consoleLib.currentRowAttrs.color = cyan;
consoleLib.currentRowAttrs.highlight=[bold];
Alternatively, you can use a set-values block to set all properties in a single statement:
consoleLib.currentDisplayAttrs {color=cyan, highlight=[bold]};
Set the attributes immediately before the openUI statement. The following lines of code refer to the example from Using an array dictionary in Console UI:
consoleLib.currentDisplayAttrs {color=cyan, highlight=[bold]};
openUI myRegister.registerArray
  ...
end

As the user scrolls down through the displayed items, data in the lines containing the cursor displays in a bold, light blue font.


Feedback