Field Properties - Box Tab - Background Color¶
The background color is controlled by three settings:
- Solid or gradient color style
- Begin color
- Ending color
The color style can be selected from the combobox and can also be conditionally set using a function. To add a function, click the button on the right-hand side and enter the condition and the style from one of the predefined color styles.
An example of a function for setting a gradient style:
if ({OrderDetail.Qty_Ordered} < 1) then
return drSolid
else
return drHorizontalGradient
end
When the background style is set to ‘Solid’, only the begin color is used. When a gradient is selected, the ‘End color’ defines the color on the right or bottom of the gradient.
Select one of the colors shown in the combobox or create a function to return the color. Use one of the predefined colors or the RGB() function to return a color value.
return {?CompanyColorChoice}
In the above example, the color to be used is defined in a parameter. Parameters can be changed via report integration.