Change CheckBox state without calling OnClick Event

后端 未结 8 1690
时光取名叫无心
时光取名叫无心 2021-01-04 06:35

I\'m wondering so when I change state of CheckBox

CheckBox->Checked=false;

It calls CheckBoxOnClick Event , how to avoid it ?

相关标签:
8条回答
  • 2021-01-04 07:12

    I hope there's a button solution but you could store the current event in a TNotifyEvent var, then set Checkbox.OnChecked to nil and afterwards restore it.

    0 讨论(0)
  • 2021-01-04 07:12

    Simple solution is to put your onclick code in onmouseup event;

    0 讨论(0)
提交回复
热议问题