title: Which radio button is selected in a TRadioGroup?
body: <p>As you can see in my question history, I'm developing a eBook manager, that will be open-source and I will release it in about 10 days, but I have a <code>TRadioGroup</code>, as you can see:<br />
  <a href="http://img85.imageshack.us/img85/1830/radiogroup.png" rel="noreferrer">TRadioGroup Used On My Form http://img85.imageshack.us/img85/1830/radiogroup.png</a></p>
  <p>And I want to store somethings in a variable(that needs to be a <code>Integer</code>) that will be &quot;linked&quot; with this <code>TRadioGroup</code>.</p>
  <p>I need to do a <code>if</code> function like this:</p>
  <blockquote>
  <p>Caption Of The TRadioButton -&gt; Number that will need to be stored in the variable</p>
  <p>Fit 2xWidth - Default -&gt; 0<br />
  Fit 2xHeight -&gt; 1<br />
  Fit Width -&gt; 2<br />
  Fit Height -&gt; 3</p>
  </blockquote>
  <p>But I just used a <code>TRadioGroup</code> and a <code>TRadioButton</code> one time, different than in C# that I've used more than 20 times. Then I want to know what I need to put on the if function, because what it will do I already know how to do:</p>
  <pre><code>var
    num: Integer;
  
  begin
    if(TRadioButton1 checked?)
    begin
      num := 0;
    end;
  end.
  </code></pre>
  <p>What I need to put inside the brackets of the <code>if</code> function?</p>
  <p>PS: I'm going to put the credits on the program for the people that helped me in this little project.</p>