| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > Control Templates >====== Cancel Button control template ====== | [[tplcontrolcalendar classes.htm|{{btn_prev_n.gif|Previous page}}]][[templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[tplcontrolclosebutton.htm|{{btn_next_n.gif|Next page}}]] | | || The CancelButton template adds a single button control marked **Cancel**. This button lets the user close a window and it provides a convenient place for the developer to add code to "undo" before closing down the procedure. The generated source code sets a "Request Cancelled" flag and closes down the window procedure. The CancelButton template provides no configuration options. You can insert the executable code you need to "clean up" at an embed point. | **When Pressed** | The standard set of prompts for buttons Normally, when using a Control template, these prompts are not used. |