The Dialog class / ui.Dialog methods |
Define cell decoration attributes array for the specified list (singular or multiple dialogs).
setArrayAttributes( name STRING, array ARRAY )
In an INPUT ARRAY or DISPLAY ARRAY instruction, the setArrayAttributes() method can be used to specify display attributes for each cell.
You must define an array with the same number of record elements as the data array used by the INPUT ARRAY or DISPLAY ARRAY. Each element must have the same name as in the data array, and must be defined with a character data type (STRING).
An equivalent method to setArrayAttributes(), called setCellAttributes(program-array), takes only the program array as argument. The setCellAttributes() method is designed for singular dialogs, where only one screen array is used. You can however use the setArrayAttributes() in singular dialogs, for consistency.
Fill the display attributes array with color and video attributes. These must be specified in lowercase characters and separated by a blank (ex: "red reverse").
Possible values for cell attributes are a combination of the following:
ON ACTION set_attributes CALL DIALOG.setArrayAttributes( "sr", attarr )
ON ACTION modify_cell_attribute LET attarr[index].col8 = "red reverse"
ON ACTION clean_cell_attribute LET attarr[index].col8 = NULL
ON ACTION remove_attributes CALL DIALOG.setArrayAttributes( "sr", NULL )
For a complete example, see Example 4: Set display attributes for cells.