Skip to main content

TdxCustomLayoutCheckableItem.OnClick Event

Enables you to respond to a state change of the layout check box or radio button.

Declaration

property OnClick: TNotifyEvent read; write;

Remarks

This event occurs every time the checkable layout item changes its state. Handle the OnClick event to execute custom code in response to:

  • A click on the item.

  • A spacebar keystroke while the item has focus.

  • A state change performed in code.

Use the Sender parameter to identify the item that raised the OnClick event. Cast the parameter value to the TdxLayoutCheckBoxItem or TdxLayoutRadioButtonItem class to access class-specific members that layout check boxes and radio buttons provide.

See Also