FMX.StdCtrls.TRadioButton.OnChange

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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 TRadioButton

Description

Occurs when the state of TRadioButton is changed.

Usually, an OnChange event happens when the radio button state is changed.

This can happen:

  • When the state is altered programmatically by setting the IsChecked property.
  • By user interaction, after the radio button is clicked.
  • When the control has keyboard focus, by pressing SPACE or ENTER.

Selecting the state of a radio button will clear all the other radio buttons within the defined GroupName, causing their respective OnChange events. OnChange will not occur on those TRadioButtons whose state would not have changed.

TRadioButtons that have their GroupName undefined form a default group of radio buttons.

Tip: The OnClick event happens before the OnChange event.

See Also