Sets the checkbox to the given state: if state is #f, the check is turned off, otherwise it is turned on.