Lantica Software Support Center
Lantica Software Home Page


Knowledgebase

Change the background color of a Checkbox depending on its value


You can accomplish this by programming the On Draw events of the checkboxes so that they change their background color depending on their value. This code changes the background color from white to gray depending on the value as you click the checkbox.

If @IsBlank(MycheckBox) Then
{
	RGBColor(MyCheckBox, -1, -1, -1, 122, 122, 122)
}
Else
{
	RGBColor(MyCheckBox, -1, -1, -1, 255, 255, 255)
}