Rafi,
Probably the fastest way to do it is to create an array of the controls handles that represent you group.
Fisrt you initialize an array with the controls IDs like this:
int ControlsGroup[3] = {PANEL_CTRL1, PANEL_CTRL2, PANEL_CTRL3};
Once you have this array you can create a small function that hides a group in a for loop i.e:
inr HideGroup(int panelHandle, int *controls, int numberOfCtrls){
int i, err;
for (i = 0; i < nuberOfCtrls; i++){
err = SetCtrlAttribute (panelHandle, controls[i], ATTR_VISIBLE, 0);
if(err != 0)
return err;
}
return err;
}
You can also create an array of panel handles to be able to perform panel properties in groups of panels.
Let me kwno if you have any ques
tions on this.
Regards,
Juan Carlos
N.I.