Lantica Software Support Center
Lantica Software Home Page
Order Sesame Getting Started Support Center Contact Us Company Downloads Q&A ™  
Search

Knowledgebase Home

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)
}

Properties ID: 000251   Views: 2087   Updated: 13 years ago
Filed under:
Programming
Form/Database Design

Copyright Lantica Software, 2003-2025 All rights reserved