This is a custom dialog
Set the "cancel" attribute of ZGDialog to a function.
In our example, we set it to "myCancel"
The function is then called when the cancel button below is clicked.