title: Creating a custom TFrame descendant as component
body: <p>I read many articles on stackoverflow about extending TFrame to have its own published properties.</p>
  
  <p>I have followed basically the aproach of <a href="https://stackoverflow.com/questions/2735521/how-to-improve-the-use-of-delphi-frames">John Thomas</a></p>
  
  <p>Repeating the code here:</p>
  
  <pre><code>unit myUnit;
  
  uses
   ...
  
  type
    TmyComp = class(TFrame) //set your frame name to be the name your component 
      ToolBar1: TToolBar; //different components added in the form designer
      aliMain: TActionList;
      ...
    published //this section is added by hand
      property DataSource: TDataSource read FDataSource write SetDataSource; //some     published properties added just for exemplification
      property DefFields: string read FDefFields write SetDefFields;
      ...
    end;
  
  
  procedure Register; //added by hand
  
  implementation
  
  {$R *.DFM}
  
  procedure Register;
  begin
    RegisterComponents('MyFrames', [TmyComp]); //register the frame in the desired component category
  end;
  </code></pre>
  
  <p>The new frame component shows up on the component pallete just fine. I can add the new frame to a form and works.</p>
  
  <p>However I need to work with my new frame as a standalone unit, like created by file->new->other->vcl frame</p>
  
  <p>I have my frames all created like, in separated units,  then inserted on a form when needed.</p>
  
  <p>What should be done for my new MyFrame works like that?</p>