CheckBox.Indeterminate
event · CheckBox · cAlgo.API
DesktopCLICloud
Occurs when indeterminate.
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> Indeterminate;
checkBox.Indeterminate += handler # handler(obj: CheckBoxEventArgs)
Examples
var checkBox = new CheckBox { Text = "Direction filter", IsThreeState = true };
checkBox.Indeterminate += args => Print("Direction filter is off, trading both sides");
Chart.AddControl(checkBox);
def on_start(self):
checkBox = CheckBox()
checkBox.Text = "Direction filter"
checkBox.IsThreeState = True
checkBox.Indeterminate += self.on_check_box_indeterminate
api.Chart.AddControl(checkBox)
def on_check_box_indeterminate(self, args):
api.Print("Direction filter is off, trading both sides")