FMX.StdCtrls.TCheckBox.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

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.

Tip: The OnClick event happens before the OnChange event.

See Also