setOnSelectHandler event calls user-defined handlers (if there are any) and passes the following parameter:
myCP.setOnCancelHandler(function (color) { //some code })