Hi Greber,
In the callback for the driving check box (the one that determine the state of the others) put these lines:
int sts;
GetCtrlVal (panel, control, &sts); // Retrieve the state of the checkbox 0:unchecked - 1:checked
SetInputMode (panel, PANEL_CHECKBOX1, !sts);
SetInputMode (panel, PANEL_CHECKBOX2, !sts);
...
This way, when the first checkbox is checked, the others are dimmed, while are active again when the checkbox is cleared.
As an alternative to SetInputMode you can use this statement:
SetCtrlAttribute (panel, PANEL_CHECKBOX2, ATTR_DIMMED, !sts);
Regards
Roberto
Message Edited by Roberto Bozzolo on 05-23-2005 11:06 AM