title: Groupbox 1 or 2; Based on which Checkbox is chosen after Button Click
body: <p>On the form I have two groupboxes, two checkboxes and one button. In the button code, I am currently having the following two lines:</p>
  
  <pre><code>if CheckBox1.Checked then GroupBox1.Show; 
  if CheckBox2.Checked then GroupBox2.Show;
  </code></pre>
  
  <p>What I would like to have is; after I click button,</p>
  
  <blockquote>
    <p>IF checkbox1 is checked then groupbox1 should appear and IF checkbox2
    is checked then groupbox2 should appear.</p>
  </blockquote>
  
  <p>However there are two further requirements that are confusing me: </p>
  
  <ol>
  <li>Neither of two groupbox should be shown on the form before I press the mentioned button. </li>
  <li>Both groupboxes (as said, which one appears depends on which
  checkbox is chosen after button click) should appear on the exact
  same location of the form. But I cannot set on exact location two
  different elements (in my case groupboxes).</li>
  </ol>
  
  <p><code>Version of delphi is 7.</code></p>