title: How to dynamically add buttons to TCategoryPanelGroup?
body: <p>Has anybody experience with Delphi 2009's TCategoryPanelGroup component and specifically with dynamically adding buttons to category panels?</p>
  
  <p>I can't get it to work properly. Either the buttons do not appear or the alignment is screwed up. Basic outline of what I want to do:</p>
  
  <pre><code>procedure AddButton (const Caption, Group : String);
  const 
    ButtonSize = 55;
    Border = 10;
  var
    CategoryPanel : TCategoryPanel;
    Button : TButton;       
  begin
    CategoryPanel := FindCategoryPanel (CategoryPanelGroup, Group);
    CategoryPanel.Height := CategoryPanel.Height + ButtonSize + Border;
    Button := TButton.Create (CategoryPanel);
    Button.Parent := CategoryPanel;
    Button.Width := ButtonSize;
    Button.Height := ButtonSize;
    Button.Left := 27;
    Button.Top := CategoryPanel.ClientHeight - Border - ButtonSize;
  end;
  </code></pre>
  
  <p>Any hints?</p>