Yes, I called the BeforePost. Not sure if the Cancel procedure was called, the first thing I do was be put a ShowMessage, and the dialog appear correctly.
Maybe then the problem is in the TDbf component, that not process correctly the Cancel procedure.
I'm thinking to do a Frame with the buttons Add, Delete, etc, and do from myself the code for Insert, Delete, Post, Cancel, etc.