RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Buttons.TButtonState Enumeration

TButtonState describes the current state of a button.

Pascal
TButtonState = (
  bsUp,
  bsDisabled,
  bsDown,
  bsExclusive
);
C++
enum TButtonState {
  bsUp,
  bsDisabled,
  bsDown,
  bsExclusive
};

Use TButtonState 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 greyed out. 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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!