CheckBox.setGroupValue

Overview | Methods | This Package | All Packages

CheckBox.setGroupValue

Sets a value that indicates which check boxes in a check box group are checked.

Syntax

public static void setGroupValue( Control group, int value )

Parameters

group

The check box group control that contains the check boxes you want to set the state for.

value

An integer that indicates which check boxes in the specified check box group are checked. This value contains bit flags that specify the checked state of each check box, with the value in the lowest bit indicating the state of the first check box in the tab order (one for checked or indeterminate states, zero for the unchecked state), the value in the second-lowest bit indicating the state of the second check box in the tab order, and so on. For example, to check the second and fifth check boxes in a group, pass a value of 18 (2 + 16) as the value parameter to this method. You cannot use this method to set check boxes to the indeterminate state.

See Also   getGroupValue