首页  编辑  

设置CheckBox而不激发Click事件

Tags: /超级猛料/VCL/(Check|List|ComBo)BOX/   Date Created:

选择复选按钮不激发OnClick

procedure CheckNoClick(CB: TCheckBox; CheckIt: Boolean);

begin

CB.Perform(BM_SETCHECK, Ord(CheckIt), 0);

end;

Using this procedure, the code for checking a TComboBox

called ComboBox1 looks like this:

CheckNoClick(ComboBox1, True);