Skip to content

CheckBox.Unchecked

event · CheckBox · 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<CheckBoxEventArgs> Unchecked;
checkBox.Unchecked += handler  # handler(obj: CheckBoxEventArgs)

Examples

var checkBox = new CheckBox { Text = "Trailing stop", IsChecked = true };
checkBox.Unchecked += args => Print("Trailing stop disabled");
Chart.AddControl(checkBox);
def on_start(self):
    checkBox = CheckBox()
    checkBox.Text = "Trailing stop"
    checkBox.IsChecked = True
    checkBox.Unchecked += self.on_check_box_unchecked
    api.Chart.AddControl(checkBox)

def on_check_box_unchecked(self, args):
    api.Print("Trailing stop disabled")