Adding Form Field Objects

Form field objects can be added only when the painter has been invoked by FORM DEFINE or DISPLAY DEFINE. In FORM DEFINE, form field objects are added directly within the paint window as the form being designed is considered to be the client area of (i.e. the area within) the paint window. In DISPLAY DEFINE, form fields must be added within a form. In DISPLAY DEFINE, it is the display which is considered to be the client area of the paint window.

A form field object is added by first clicking on the icon in the object gallery that represents the desired form field object type. The cursor appears as an outline image of the icon for the selected form field object. Move the cursor to the approximate location within the window (or form) where you would like the form field to be positioned and click the left mouse button. The selected form field appears at that location. It initially has default dimensions, default label text (if any) and default attributes. Except for label and graphic form fields, the Add Form Field dialog is presented. This enables you to change the automatically generated field name to a meaningful name should you wish, change any label text associated with the form field and also, access the edit dialog for the specific form field object type (using the Attributes... push button), in order to modify some or all of its default attributes. You can also modify any of the form field's attributes at a later time by displaying the specific edit form field dialog for the type of form field added.

There are also other ways to add form fields. You can import form fields from a form whose definition exists in the Data Dictionary. You can paste form fields which have been either cut or copied from another (or the same) form. You can also duplicate form fields.

Related Information

FORM DEFINE

DISPLAY DEFINE

Edit Form Field dialog

Import dialog