"enabled"

Sets a checkbox active or inactive (TRUE or FALSE). TRUE, however, does not mean that a check box is automatically activated. When the value has been set to TRUE, the check box can then be activated by a user.

Synopsis

CHECK_BOX1.enabled (bool);

Parameters

Parameter Description
bool Sets the check box active (TRUE) or inactive (FALSE)

Description

Sets a check box active (you can check the box but it is not automatically activated) or inactive (the check box cannot be activated).

Example

The example contains two buttons and two check boxes. When you click on button 1, the checkbox1 is activated and checkbox2 deactivated. On the other hand, checkbox 2 is activated and checkbox1 is deactivated when you click on the button 2. Create the following code for button 1.

main()
{
  CHECK_BOX1.enabled(TRUE);
  CHECK_BOX2.enabled(FALSE);
}

Create the same code for button 2, but set checkbox2 to TRUE and checkbox1 to FALSE.

CHECK_BOX2.enabled(TRUE);
CHECK_BOX1.enabled(FALSE);
Abbildung 1. Check boxes activated and deactivated

Assignment

Check box