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

# TCustomButtonPanel.OKButton

OKButton - a button with the caption 'OK' signifying acceptance by the user.

## Declaration

Source position: buttonpanel.pas line 104

`public property TCustomButtonPanel.OKButton : TPanelBitBtn read FButtons[pbOK] default Nil;`

## Description

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

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

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

## See also

TCustomButtonPanel.CancelButton |  | CancelButton - a button with the 'Cancel' caption for cancelling the operation.
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.