Setting TRadioButton to checked causes OnClick event

后端 未结 4 1372
陌清茗
陌清茗 2021-01-18 20:51
mybox.Checked := true;

Setting TRadioButton to checked (by code) causes OnClick event handler to be called.

How can I recognize if user is

4条回答
  •  长情又很酷
    2021-01-18 21:14

    If you have an action connected to the radiobutton, you can set the checked property of the action instead. This will also prevent the OnClick event to be fired.

提交回复
热议问题