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

# TCustomButtonPanel.CancelButton

CancelButton - a button with the 'Cancel' caption for cancelling the operation.

## Declaration

Source position: buttonpanel.pas line 107

`public property TCustomButtonPanel.CancelButton : TPanelBitBtn read FButtons[pbCancel] default Nil;`

## Description

CancelButton is a read-only TPanelBitBtn property which provides access to the Cancel button for the panel. Read access is redirected to the internal array of buttons in the class instance.

Use CancelButton to set custom values for properties in the TPanelBitBtn instance, including:

- Caption
- Cursor
- DefaultCaption
- Enabled
- Font
- Glyph
- Name
- PopupMenu
- ShowHint
- Tag

## See also

TCustomButtonPanel.CloseButton |  | CloseButton - a button with the 'Close' caption for terminating the Form or panel.
TCustomButtonPanel.HelpButton |  | HelpButton - a button with the 'Help' caption, for requesting help.
TCustomButtonPanel.OkButton |  | OKButton - a button with the caption 'OK' signifying acceptance by the user.