checkbox tag改为 1。。2。。
每个checkbox事件都指向 checkbox1click事件,即下面事件
var
i:integer;
begin
if (sender as TCheckBox).Checked then
begin
for i:=0 to GroupBox1.ControlCount-1 do
begin
if (GroupBox1.Controlsas tcheckbox).Tag<>(sender as TCheckBox).Tag then
begin
(GroupBox1.Controlsas TCheckBox).Checked:=false;
end;
end;
end;
end;