procedure TForm1.ToBoEvTaClick(Sender: TObject);begin if ToBoEvTa.State=cbunchecked then begin ToBoEvTa.caption :='Run Event Table'; //ToBoEvTa.ParentColor:=False; ToBoEvTa.Color:=clLime; end else begin //ToBoEvTa.ParentColor:=False; ToBoEvTa.Color:=clRed; ToBoEvTa.caption :='Stop Event Table'; endend;