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

TCustomButton.Active

True if the control is the Cancel or Default button.

Declaration

Source position: stdctrls.pp line 1254

public property TCustomButton.Active : Boolean
  read FActive
  stored False;

Description

Active is a read-only Boolean property which indicates if the control is the active default control for the parent form.

The property value is updated in ActiveDefaultControlChanged when the focus for the control has been changed. It is set to True when the button gains focus and becomes the ActiveDefaultControl on the parent form. It is set to False when another control is set as the ActiveDefaultControl on the parent form. It is set to the value in the Default property when the ActiveDefaultControl is set to Nil.

See also

TCustomButton.ActiveDefaultControlChanged

  

Updates the button and/or parent form when the active default control has been changed.

TCustomButton.Default

  

True if the button is the default button in a modal form.

TCustomForm.ActiveDefaultControl

  

Specifies the active default control on the form.


Version 4.0 Generated 2025-05-03 Home