Partager via


Forms Tab, Options Dialog Box

Contains options for the Form Designer.

When you choose Set As Default — which appears on every tab in the dialog box — Visual FoxPro saves the option settings in the registry (system Windows registration database).

Note   If an instance of the Form Designer is already open when you change settings in the Form tab of the Options dialog box, the changes are not reflected until you close that instance of the Form Designer and then reopen it.

Grid

  • Grid lines
    Specifies that the Form Designer displays grid lines to help you align controls.

    Note   These are defaults for new forms only, and that settings for existing forms will be saved in the resource file.

  • Snap to grid
    Specifies that when you draw new controls, their edges align with the nearest grid lines.

    Note   These are defaults for new forms only, and that settings for existing forms will be saved in the resource file.

  • Horizontal spacing (pixels)
    Specifies the width of the space between horizontal grid lines. The width is based on the Scale units option on this tab.

    Note   These are defaults for new forms only, and that settings for existing forms will be saved in the resource file.

  • Vertical spacing (pixels)
    Specifies the height of the space between vertical grid lines. The height is based on the Scale Units option on this tab.

    Note   These are defaults for new forms only, and that settings for existing forms will be saved in the resource file.

  • Show position
    Specifies whether object position and dimensions are displayed on the status bar.

  • Tab ordering
    Specifies how to set tab order in a form. Choose Interactive to use order controls by clicking on them. Choose By List to use the Tab Order Dialog Box.

  • Scale units
    Sets the default scale mode for the Form Designer and Class Designer. Specifies pixels or foxels.

  • Maximum design area
    Specifies a maximum size of the form for design time. Visual FoxPro will not let you size a form that is bigger than the specified resolution. It is a good idea to specify the smallest resolution your users will want so that your forms will be viewable by all users. If none is selected, Visual FoxPro will not enforce any size restriction.

Template classes

Specifies a class library and class to base your new forms and form sets on. The default is that Visual FoxPro uses its base class.

  • Form Set
    Displays the Form Set Template dialog box, where you select a form set template.
  • Form
    Displays the Form Template dialog box, where you select a form template.
  • Builder lock
    Specifies that builders are displayed automatically in the Form Designer when you create a control that has a builder registered to it.
  • Prompt to save changes before running form
    Specifies that when you run a form from the Form Designer, you are prompted to save changes to the form made since the last time you saved it. If you clear this option, the Form Designer saves changes automatically before running the form.

See Also

Form Designer | Options Dialog Box | Tab Order Dialog Box | Form Set Template Dialog Box | Form Template Dialog Box