[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TRadioButton.DoClickOnChange

Performs actions needed when the control has been changed using a mouse click.

Declaration

Source position: stdctrls.pp line 1497

protected procedure TRadioButton.DoClickOnChange; override;

Description

DoClickOnChange is an overridden method used to signal an OnChange event handler when the mouse is clicked on the control. DoClickOnChange ensures the value in TabStop is updated to reflect the State for the control. When State contains cbChecked, TabStop is set to True. Otherwise, it is set to False.

DoClickOnChange also ensures that the correct click/change behavior is used for the current control State. If the control is Checked, the inherited DoClickOnChange method is called. This also emulates the Delphi click behavior where the OnChange event handler is signalled when ClicksDisabled is True. When the control is not Checked, the DoOnChange method is called to signal both the OnEditingDone and OnChange event handlers.

DoClickOnChange is called from the DoChange method in the TCustomCheckBox ancestor class.

See also

TCustomCheckBox.DoClickOnChange

  

Implements the Click behavior for the control.

TButtonControl.DoOnChange

  

Signals the OnEditingDone and OnChange event handlers (when assigned).


Version 4.0 Generated 2025-05-03 Home