Was this helpful?
Set Size and Position Attributes
The FormAttr operation can be used to change the size and position of a form.
To change the size of a form or the position of a pop-up form
1. Choose the FormAttr operation on the Form Layout frame.
VIFRED displays the Form Attribute pop-up frame.
2. Enter the change in the appropriate field on the Form Attribute frame, as described in the following subsections, and then press the End key.
In most cases, you do not need to type the entire word or words for the option you want. The first one or two letters suffice.
Form Size
The Sizefield on the Form Attributes frame is a display-only field and reflects the current size of the form, as determined by editing on the Form Layout frame, or in the case of pop-up display-style forms, by the VisuallyAdjust operation.
When using this information to plan the location of a pop-up form, remember to account for the additional lines and columns required for a specified border. The pop-up and its border must be small enough to entirely fit within the window.
Screen Width of a Form
You can display a fullscreen form in one of the following widths, with accordingly larger or smaller character fonts and spacing:
Current width
Narrow width (usually 80 columns)
Wide width (usually 132 columns)
The default is current screen width, as specified in the termcap entry corresponding to your TERM_INGRES setting. The narrow width is typically 80 columns, and the wide width is typically 132 columns, depending on your screen size and type.
To create forms wider than 80 columns, or to otherwise adjust the size of a form, see Move the Margins of a Form.
Position Mode
The Position mode attribute is only displayed for pop-up display-style forms. Use this attribute to specify whether the pop-up style form is fixed or floating when it appears in the window.
Fixed
If you specify this mode, you also can fill in the StartRow and StartColumn attribute fields, which specify the row and column position of the pop-up form's upper left corner. The form always pops up at that location regardless of which field is current or where the cursor is.
Floating
Whenever you invoke the pop-up display-style form, VIFRED positions the form in the window relative to the current field (the field containing the cursor). VIFRED places the pop-up form as close to the current field as possible without obscuring it.
To change the Position mode attribute
1. Put the cursor in the Position mode field on the Form Attributes frame.
2. Type in fi for Fixed or fl for Floating and press End.
If you choose Fixed mode, you must set the size and position of the form, as discussed in the next sections.
StartRow and StartColumn Attributes
The StartRow and StartColumn attributes only display for fixed-position pop-up display-style forms.
Use the StartRow and StartColumn attributes to specify the location of a fixed‑position pop-up style form. You use these two attributes to specify the screen row and column of the upper left corner of the form. For example, to place the upper left corner of the form at the 10th column of the 5th row, enter 5 in the StartRow field and 10 in the StartColumn field.
Both StartRow and StartColumn are screen‑relative, not form‑relative. That is, they refer to locations on the user's screen regardless of the position of any underlying forms or the position of the cursor. When you use fullscreen‑style forms that are larger than your screen, you must scroll around the fullscreen form. Fixed‑position pop-up style forms always appear at the same place in the window no matter how the underlying fullscreen form is displayed.
By default, the initial StartRow and StartColumn specifications are set to Row 1, Column 1.
Last modified date: 04/03/2024