Setting the Form Size

See Also

You can change the size of a form in the Form Editor by dragging the form's light purple border. This is primarily useful to make components more visible or accessible during design.

If you want the size of the form in the Form Editor to reflect the initial size of the form when it is compiled and run, use the Code properties in the form's Properties window. Once the properties are set as described below, you can set the form's initial size by dragging the form's border in the Form Editor.

To set the initial form size in the Form Editor:

  1. In the Inspector window , select a form component that uses a Null layout.
  2. Click the Code button in the Properties window to view the Code properties.
  3. Set the Form Size Policy property to Generate Resize Code.

    This enables the Form Size, Generate Center, and Generate Size.

  4. Set the Generate Size property to True. The Form Size property will now reflect the form size in the Form Editor tab. You can change the initial form size dimensions by either typing the new dimensions in the property sheet or by dragging the bottom and right borders of the form.
Tip Setting an initial form size as described above is suitable only for forms that use a Null layout.
See Also
Modifying Code Generation for a Form

Legal Notices