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

# TCustomSpeedButton.GetDrawDetails

Gets the theme element details used to draw the control.

## Declaration

Source position: buttons.pp line 395

`protected function TCustomSpeedButton.GetDrawDetails: TThemedElementDetails; virtual;`

## Function result

Theme element detail used to draw the control in its current state.

## Description

Called from the MeasureDraw method. The return value can be an enumeration value from either TThemedToolBar or TThemedButton depending on the value in the Flat property.

When Flat is True, one of the following TThemedToolBar values is returned:

ttbButtonDisabled
  Used when IsEnabled is False.
ttbButtonChecked
  Used when Down is True and the mouse pointer is not over the control.
ttbButtonCheckedHot
  Used when Down is True and the mouse pointer is hovered over the control.
ttbButtonPressed
  Used when Down is False and the mouse is hovered over a grouped button control.
ttbButtonHot
  Used when Down is False and the mouse is hovered over a non-grouped button control.
ttbButtonNormal
  Default state for the control.

When Flat is False, one of the following TThemedButton values is returned:

tbPushButtonDisabled
  Used when IsEnabled is False.
tbPushButtonPressed
  Used when a grouped button control is Down.
tbPushButtonHot
  Used when a grouped button control is under the mouse pointer.
tbPushButtonNormal
  Default state for the control.