Define cell decoration attributes array for the specified list (singular or multiple dialogs).
setArrayAttributes( name STRING, attributes ARRAY )
In an INPUT ARRAY or DISPLAY ARRAY dialog, the setArrayAttributes() method can be used to specify display attributes for each cell.
The setArrayAttributes() when several screen arrays are defined, to be able to idenfify the list by the name of the screen array. An equivalent method called setCellAttributes() can be used, for dialogs where only one screen array is defined.
Possible values for cell attributes are a combination of the following:
DEFINE data DYNAMIC ARRAY OF RECORD pkey INTEGER, name VARCHAR(50) END RECORD DEIFNE attributes DYNAMIC ARRAY OF RECORD pkey STRING, name STRING END RECORD
FOR i=1 TO data.getLength() -- length from data array! LET attributes[i].name = "blue reverse" END FOR
BEFORE DIALOG CALL DIALOG.setArrayAttributes( "sr", attributes )
ON ACTION modify_cell_attribute LET attributes[arr_curr()].name = "red reverse"
ON ACTION clean_cell_attribute LET attributes[arr_curr()].name = NULL