RadioButton.Unchecked
event · RadioButton · cAlgo.API
DesktopCLICloud
Occurs when unchecked.
Environment behaviour
CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Definition
public event Action<RadioButtonEventArgs> Unchecked;
radioButton.Unchecked += handler # handler(obj: RadioButtonEventArgs)
Examples
var buyRadioButton = new RadioButton { Text = "Buy", GroupName = "Direction", IsChecked = true };
buyRadioButton.Unchecked += args => Print("{0} is no longer selected", args.RadioButton.Text);
Chart.AddControl(buyRadioButton);
def on_start(self):
buyRadioButton = RadioButton()
buyRadioButton.Text = "Buy"
buyRadioButton.GroupName = "Direction"
buyRadioButton.IsChecked = True
buyRadioButton.Unchecked += self.on_radio_button_unchecked
api.Chart.AddControl(buyRadioButton)
def on_radio_button_unchecked(self, args):
api.Print(f"{args.RadioButton.Text} is no longer selected")