FMX.StdCtrls.TCheckBox.OnChange
Delphi
property OnChange: TNotifyEvent read FOnChange write FOnChange;
C++
__property System::Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.StdCtrls.pas FMX.StdCtrls.hpp |
FMX.StdCtrls | TCheckBox |
Description
Occurs when the state of TCheckBox is changed.
Usually, the OnChange event happens when the check box's state is changed. This can happen:
- When the state is altered programmatically by setting the IsChecked property.
- By user interaction, after the box is clicked by mouse.
- When the control has keyboard focus, by pressing SPACE or ENTER.
Write an OnChange event handler to customize what happens when the box is selected.