我的窗口上有很多的控件,有几百个,我现在想用CheckBox来控制几个SpeedButton是否可用,但是我一运行,程序就提示Stack overflow,我已经把Project->Option->Linker的Max Stack Size设置为最大$1000000,但是还是不行,源码如下:if cbxButtonStatus.Checked then
begin
  cbxButtonStatus.Checked := False;
  spbtnInit.Enabled := True;
end
else begin
  cbxButtonStatus.Checked := True;
  spbtnInit.Enabled := False;
end;请教是否有什么办法可以解决这个问题,先谢谢了!