From RAD Studio API Documentation
Jump to: navigation, search


property OnClick: TNotifyEvent read FOnClick write SetOnClick stored OnClickStored;


__property System::Classes::TNotifyEvent OnClick = {read=FOnClick, write=SetOnClick, stored=OnClickStored};


Type Visibility Source Unit Parent
event public
FMX.Controls TControl


Occurs when the control is clicked.

For controls (such as TLabel and TPathLabel) that have the HitTest property set to False by default, the OnClick and OnDblClick mouse events pass through to the control behind this control.

Usually, the OnClick event happens when the left mouse button is pressed and released with the pointer over the control or when Click is called.

For buttons controls, the OnClick event also happens when the control is in focus and the SPACEBAR or ENTER key is pressed.

For controls with state, like TRadioButton and TCheckBox, OnClick does not change the state (the IsChecked property is not changed). OnClick cannot be associated to a form.

See Also