Product Information > JADE Development Environment User’s Guide > Chapter 5 - Using the Painter and Form Wizard > Specifying Your Form Preferences

Specifying Your Form Preferences

You can specify your form preferences when you first define your application or you can access the Define Application at any time to maintain your application preferences.

To access the Define Application dialog

  1. Perform one of the following actions to open an Application Browser window.

  2. From the Application menu of the Application Browser, select either:

    The Define Application dialog is then displayed.

  3. Click the Form tab.

The Form sheet of the Define Application dialog, shown in the following diagram, is then displayed.

The Form sheet of the Define Application dialog enables you to specify the attributes for your forms. The form margin, control spacing, and control height preferences are specified in Dialog Units, so that you do not need to specify both vertical and horizontal spacing. (Pixel spacing is then a function of the Dialog Units and the application font.)

To specify your form preferences from the Form sheet

  1. In the 3D Controls list box, select the controls to which three-dimensional effects are added.

  2. Check the Use borderStyle only (ignore show3D) for new controls check box if you want to ignore the default value of the show3D property for new controls and use only the value of the borderStyle property.

  3. Check the Default to MDI check box if you want your forms created as Multiple Document Interface (MDI) forms. By default, forms are not created as MDI forms; that is, this check box is unchecked.

    This is an application default, which you can override for individual forms.

  4. Click the Default Font button if you want to change the default font for the forms in your application. The default font for your forms is MS Sans Serif, regular style, and 8 points.

    The common Font dialog is then displayed, to enable you to make your font selections. When you have made your font selections, focus is then returned to the Form sheet of the Application dialog.

  5. In the Form Margin text box, specify the number of dialog units that you require as a margin around the edge of forms (windows) in your JADE application.

    Form margins enable you to position controls so that they do not intrude into the margin of the form. The default value is 7 dialog units.

    When the Show Alignment Hairs command from the Painter Options menu is set, a margin of the specified number of dialog units is drawn around the inside of the form. No alignment grid lines are drawn in the margin of a form.

  6. In the Control Spacing text box, specify the number of dialog units that you require between controls on forms in your JADE application.

    The default value is 4 dialog units.

  7. In the Control Height text box, specify the number of dialog units that you require as the uniform height of button, label, and text box controls on forms in your JADE application.

    The default value is 14 dialog units.

  8. Click the OK button.

    Alternatively, click the Cancel button to abandon your selections.