Vcl.ActnCtrls.TCustomButtonControl.State

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property State: TButtonState read FState write SetState;

C++

__property Vcl::Buttons::TButtonState State = {read=FState, write=SetState, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ActnCtrls.pas
Vcl.ActnCtrls.hpp
Vcl.ActnCtrls TCustomButtonControl

Description

Describes the current state of the button.

Use State as an indicator of the state of the button control. The possible values are as follows:



Value State Description

bsUp

The button control is up, or unselected.

bsDisabled

The button is not enabled, which generally means it is dimmed. It cannot be selected by the user.

bsDown

The button control is down, or selected.

bsExclusive

The button is a radio button. It is one of a group of buttons, exactly one of which must be selected at any given time. Selecting another button will cause the previously selected button to become deselected.