As the user moves from field to field in a virtual form, Vermont Views will scroll the form so that the current field is visible. If that field has an associated prompt, Vermont Views will attempt to make the prompt visible as well.
Designer: Prompts and fields are not associated by default. To associate a prompt with a field, put the cursor on the field, go to the MODIFY->Field menu, and select "Pair with prompt." See the Designer User's Guide for more details.
Code: When you specify a prompt in your fld_def() call, that prompt is associated or paired with the field. If for some reason you cannot specify the prompt in the fld_def() call, you can do the following:
| 1 | Create a text object with bg_txtdef(). |
| 2 | Create a field (with no prompt) with fld_def(). |
| 3 | Pair the field with the prompt by directly setting the promptp member in the field structure to point to the text object. |
The following code fragment illustrates these steps:
|
See Chapter 15, "Changing the Appearance of Data Forms," for more information on defining text objects.