RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBitBtn.Cancel Property

Determines whether the button's OnClick event handler executes when the Escape key is pressed.

Pascal
property Cancel: Boolean;
C++
__property Boolean Cancel;

If Cancel is true, the button's OnClick event handler executes when the user presses Esc. Although an application can have more than one Cancel button, the form calls the OnClick event handler only for the first visible button in the tab order. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!