RadioButton.Click
event · RadioButton · cAlgo.API
DesktopCLICloud
Occurs when clicked.
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> Click;
radioButton.Click += handler # handler(obj: RadioButtonEventArgs)
Examples
var radioButton = new RadioButton { Text = "Buy", GroupName = "Direction" };
radioButton.Click += args => Print("{0} clicked", args.RadioButton.Text);
Chart.AddControl(radioButton);
def on_start(self):
radioButton = RadioButton()
radioButton.Text = "Buy"
radioButton.GroupName = "Direction"
radioButton.Click += self.on_radio_button_click
api.Chart.AddControl(radioButton)
def on_radio_button_click(self, args):
api.Print(f"{args.RadioButton.Text} clicked")