[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomButton.Cancel

Is this the Cancel button? (default setting is False)

Declaration

Source position: stdctrls.pp line 1120

public property TCustomButton.Cancel: Boolean
  read FCancel
  write SetCancel
  default false;

Description

Setting this property to true, will have the effect that when the user hits ESC this button is Clicked, even if the button does not have focus. Usually the Button which reacts to ESC sets the ModalResult of the form to mrCancel.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.