$chkboxes = GUICtrlCreateCheckbox($payers, -1 * $cellWidth, 0) $left = 1 For $i = 1 to UBound($payers) -1 Step 1 Select Case $left = 3 ;Edit this number to change the number of columns of check boxes $chkboxes[$i] = Guictrlcreatecheckbox($payers[$i], -$left * $cellWidth, 0) $left = 1 Case else ;Adds checkboxes to existing row until row limit is reached $chkboxes[$i] = GUICtrlCreateCheckbox($payers[$i], 0, -1) $left += 1 EndSelect Next
The checkbox array takes the elements of another array as the data and arranges them in columns. The form I have takes input from two other input boxes as well as at least 1 or more of these checkboxes and generates output when a button is pressed. I'm trying to set up form validation to make sure the user can't press the generate button until both input boxes are filled in and at least one of the checkboxes is checked.
I use a Do.. While loop to check watch for various GUIGetMsg events such as when other buttons are pressed to perform an action. How can i add something to that loop that will check when ANY checkbox is added to enable/disable the generate button accordingly?