Setting TRadioButton to checked causes OnClick event

后端 未结 4 1316
陌清茗
陌清茗 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:08

     mybox.Tag := 666; 
     mybox.Checked :=true; 
     mybox.Tag := 0;
    
    procedure myboxOnclick(Sender : TObject);
    begin
    if Tag = 0 then
    //Do your thing
    end;
    

提交回复
热议问题