Delphi: TFrame error No frames are available to insert

The reason for the problem is in changes to the .dproj file when the Firemonkey framework was added. To distinguish frames made for a vcl from frames made for fmx a line was added to the .dproj files as below. To make the correction to the .dproj file do as follows:

  1. Close the Delphi IDE.

  2. Open the .dproj file with a text editor of your choice.

  3. Look up the TFrame one by one.

  4. Let's suppose the following is your TFrame section:

    <DCCReference Include="Results.pas">
        <Form>FrameResults</Form>
        <DesignClass>TFrame</DesignClass>
    </DCCReference>
    
  5. The fix is to add the following line into that section:

        <FormType>dfm</FormType>
    

(in fmx projects the line is <FormType>fmx</FormType>)

Tags:

Delphi

Tframe