Colors in browse

Flipkonijn

New Member
Hello,

is it possible to give a row a color in a browse, and give another row another color?

how can you do this?

thanks alot guys!!!
 
In the row-display event of a browse you may set the background and foreground color of any or all of the fields in the row to be displayed.

quick example for a browse (brw-1) displaying fld-1 and fld-2

in row-display event put following code

if fld-1 = "anytestvalue" then do:
fld-1:bgcolor in browse brw-1 = 11.
fld-2:bgcolor in browse brw-1 = 11.
end.
else do:
fld-1:bgcolor in browse brw-1 = 14.
fld-2:bgcolor in browse brw-1 = 14.
end.

This will toggle the background color of the browse between
cyan and yellow depending on the condition of the field fld-1.

We are on version 8. There may be other ways to accomplish this
but we like degree of control offered by this method.

Hope this helps.
 
Back
Top