我按照下面这样做了不行。
Panel_P4.Visible:=False;
Panel_P7.Visible:=False;
Panel_P9.Visible:=False;
Panel_P11.Visible:=False;
Panel_P12.Visible:=False;
Panel_P13.Visible:=False;
Panel_P14.Visible:=False;
Panel_P15.Visible:=False;
Panel_P16.Visible:=False;
Panel_P17.Visible:=False;
Panel_P18.Visible:=False;
Panel_P19.Visible:=False;
//
Panel_P4.Visible:=Chk_C4.Checked;
Panel_P7.Visible:=Chk_C7.Checked;
Panel_P9.Visible:=Chk_C9.Checked;
Panel_P11.Visible:=Chk_C11.Checked;
Panel_P12.Visible:=Chk_C12.Checked;
Panel_P13.Visible:=Chk_C13.Checked;
Panel_P14.Visible:=Chk_C14.Checked;
Panel_P15.Visible:=Chk_C15.Checked;
Panel_P16.Visible:=Chk_C16.Checked;
Panel_P17.Visible:=Chk_C17.Checked;
Panel_P18.Visible:=Chk_C18.Checked;
Panel_P19.Visible:=Chk_C19.Checked;