遇到有人问如何用代码设置checkbox的同时执行on checkbox changed state 事件

其实事件就是这个控件的一个函数

范例如下,话说最近乱七八糟的忙,一直没有写帖子。有时间还是要积累一下

 

View Code
 1 rollout testRollout ""
2 (
3 checkBox ckb1 "CheckButton"
4 button btn1 "Button"
5 on ckb1 changed state do
6 (
7 print state
8 )
9 on btn1 pressed do
10 (
11 ckb1.checked = not ckb1.checked
12 ckb1.changed ckb1.checked
13 )
14 )
15 createdialog testRollout



相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-10-11
  • 2022-12-23
  • 2021-11-01
  • 2022-01-14
  • 2022-12-23
  • 2021-09-03
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-09-19
相关资源
相似解决方案