Create CheckBoxes using the CreateCheckBox method of the app object:
Use the SetOnTouch method of the CheckBox object to set the name of a function you want to be called when the CheckBox is touched. You can read the 'isChecked' parameter in your callback function to get the state of the CheckBox
See 'CreateCheckBox for more informations and a complete function list